A possible fix for the memory leak reported by valgrind when running tcctest.c with tcc.
This commit is contained in:
2
libtcc.c
2
libtcc.c
@ -1094,6 +1094,8 @@ LIBTCCAPI void tcc_delete(TCCState *s1)
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if(s1->sym_attrs) tcc_free(s1->sym_attrs);
|
||||||
|
|
||||||
tcc_free(s1);
|
tcc_free(s1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user