summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Meissner <wmeissner@gmail.com>2011-03-16 06:09:20 +1000
committerWayne Meissner <wmeissner@gmail.com>2011-03-16 06:09:20 +1000
commit0a058c094f65ec3123d96ca2097574de59726b36 (patch)
treef09c5243e617ae55ad8b8f668db61c546711259f
parent560f19a6fbcf2b55fc539ab6316a818cb57d9990 (diff)
downloadffi-1.0.7.tar.gz
Fix memory leak in struct_free(). Pointed out by tmm1.1.0.7
-rw-r--r--ext/ffi_c/Struct.c1
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);
}