Commit 2a3e0773 authored by François Grisez's avatar François Grisez
Browse files

Fix a memory leak in detect_res_prefix()

parent ecc4a6c0
......@@ -492,6 +492,9 @@ static void detect_res_prefix(const char* prog) {
if (progpath != NULL) {
free(progpath);
}
if(progname) {
free(progname);
}
}
void bc_tester_init(void (*ftester_printf)(int level, const char *format, va_list args), int iverbosity_info, int iverbosity_error, const char* aexpected_res) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment