mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
fix leaks in fuzz tests
This commit is contained in:
parent
38ca1bb389
commit
c4df8b1390
4 changed files with 34 additions and 17 deletions
|
@ -66,8 +66,12 @@ extern "C" { \
|
|||
catch (const std::exception &e) \
|
||||
{ \
|
||||
fprintf(stderr, "Exception: %s\n", e.what()); \
|
||||
return 1; \
|
||||
delete el::base::elStorage; \
|
||||
el::base::elStorage = NULL; \
|
||||
return 0; \
|
||||
} \
|
||||
delete el::base::elStorage; \
|
||||
el::base::elStorage = NULL; \
|
||||
return 0; \
|
||||
} \
|
||||
}
|
||||
|
@ -122,8 +126,12 @@ int run_fuzzer(int argc, const char **argv, Fuzzer &fuzzer);
|
|||
catch (const std::exception &e) \
|
||||
{ \
|
||||
fprintf(stderr, "Exception: %s\n", e.what()); \
|
||||
return 1; \
|
||||
delete el::base::elStorage; \
|
||||
el::base::elStorage = NULL; \
|
||||
return 0; \
|
||||
} \
|
||||
delete el::base::elStorage; \
|
||||
el::base::elStorage = NULL; \
|
||||
return 0; \
|
||||
} \
|
||||
}; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue