diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-23 14:13:05 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-23 14:13:05 +0100 |
commit | e7bb0443cda9bfb88791c3a99bf0331217390eb4 (patch) | |
tree | 987ee269887c1d04e9b27e1f6bf514a7e2a2eefb /py/gc.c | |
parent | dd4f4530ab35c162252b003d2713b06eb65903e1 (diff) |
py: Properly free string parse-node; add assertion to gc_free.
Diffstat (limited to 'py/gc.c')
-rw-r--r-- | py/gc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -484,7 +484,11 @@ void gc_free(void *ptr_in) { #if EXTENSIVE_HEAP_PROFILING gc_dump_alloc_table(); #endif + } else { + assert(!"bad free"); } + } else if (ptr_in != NULL) { + assert(!"bad free"); } } |