diff options
author | Wayne Meissner <wmeissner@gmail.com> | 2011-03-16 06:09:20 +1000 |
---|---|---|
committer | Wayne Meissner <wmeissner@gmail.com> | 2011-03-16 06:09:20 +1000 |
commit | 0a058c094f65ec3123d96ca2097574de59726b36 (patch) | |
tree | f09c5243e617ae55ad8b8f668db61c546711259f /ext/ffi_c/Struct.c | |
parent | 560f19a6fbcf2b55fc539ab6316a818cb57d9990 (diff) | |
download | ffi-0a058c094f65ec3123d96ca2097574de59726b36.tar.gz |
Fix memory leak in struct_free(). Pointed out by tmm1.1.0.7
Diffstat (limited to 'ext/ffi_c/Struct.c')
-rw-r--r-- | ext/ffi_c/Struct.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/ffi_c/Struct.c b/ext/ffi_c/Struct.c index dadef81..313d0ba 100644 --- a/ext/ffi_c/Struct.c +++ b/ext/ffi_c/Struct.c @@ -194,6 +194,7 @@ static void struct_free(Struct* s) { xfree(s->rbReferences); + xfree(s); } |