mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-08 19:44:17 +00:00
Close manifest leak
This commit is contained in:
parent
9372200dfc
commit
add895fd97
@ -957,9 +957,11 @@ int rhizome_suggest_queue_manifest_import(rhizome_manifest *m, const struct sock
|
||||
{
|
||||
IN();
|
||||
|
||||
if (!config.rhizome.fetch)
|
||||
if (!config.rhizome.fetch){
|
||||
rhizome_manifest_free(m);
|
||||
RETURN(0);
|
||||
|
||||
}
|
||||
|
||||
const char *bid = alloca_tohex_bid(m->cryptoSignPublic);
|
||||
int priority=100; /* normal priority */
|
||||
|
||||
@ -989,6 +991,7 @@ int rhizome_suggest_queue_manifest_import(rhizome_manifest *m, const struct sock
|
||||
RETURN(-1);
|
||||
}
|
||||
rhizome_import_received_bundle(m);
|
||||
rhizome_manifest_free(m);
|
||||
RETURN(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user