diff options
| author | seyko <seyko2@gmail.com> | 2015-05-03 13:58:27 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-05-03 13:58:27 +0300 |
| commit | 2ba219f781a304112398cc37fb382c762a1c7cf4 (patch) | |
| tree | bb9b7d790ef0b9151435bef8641aca5a61380920 | |
| parent | 929d171f477a94169cf08ff2b900d9f37f1cefd6 (diff) | |
| download | tinycc-2ba219f781a304112398cc37fb382c762a1c7cf4.tar.gz tinycc-2ba219f781a304112398cc37fb382c762a1c7cf4.tar.bz2 | |
fix "tcc test.c -UAAA -UBBB"
no need to call tcc_free() inside tcc_undefine_symbol()
Otherwise we get segmentation fault inside tcc_delete()
| -rw-r--r-- | libtcc.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -891,7 +891,6 @@ LIBTCCAPI void tcc_undefine_symbol(TCCState *s1, const char *sym) /* undefine symbol by putting an invalid name */ if (s) define_undef(s); - tcc_free(ts); } /* cleanup all static data used during compilation */ |
