Closed jgabaut closed 10 months ago
With version 0.3.1
, (see PR), kls_new_traced()
is provided to correctly init a Koliseo
which performs the required fclose()
inside kls_free()
.
However, there are still many exit()
statements that can be reached with no kls_free()
call before. I will have to see if something can be done about it.
From version
0.3.0
, (see PR), aFIXME
has been put in place at the beginning of koliseo.c.Right now, calls to
exit()
from runtime error checks never try tofclose(KOLISEO_DEBUG_FP)
. As a result, if it is initialised, it can leak when an error (say,Out-of-memory
) happens.This should be corrected because even if the lib doesn't initialise the pointer, it could still be made ready from calling code.