Skip to content

Commit

Permalink
Fix: memory leak. Free trace buffer on error
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Oct 21, 2022
1 parent 4c7a664 commit 6033cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nasl/nasl_func.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ nasl_func_call (lex_ctxt *lexic, const nasl_func *f, tree_cell *arg_list)
return retc;

error:
g_free (trace_buf)
g_free (trace_buf);
free_lex_ctxt (lexic2);
return NULL;
}
Expand Down

0 comments on commit 6033cc5

Please sign in to comment.