summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-09-11 17:16:07 -0700
committerColin Walters <walters@verbum.org>2015-10-19 18:23:43 -0400
commitcf713559de494229d6104bd98883f49c0ff1f663 (patch)
tree4372c5781a586f4ba6c5f07e0877a58141f04279
parentdcf87051f8ffd7b2bfc48d2e723b208c3345434c (diff)
downloadgobject-introspection-cf713559de494229d6104bd98883f49c0ff1f663.tar.gz
tests: Free input array in test_array_int_inout()
Transfer is annotated as full so the function should free its input. https://bugzilla.gnome.org/show_bug.cgi?id=736517
-rw-r--r--tests/scanner/regress.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index 59dafaa4..c05bae29 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -664,6 +664,8 @@ regress_test_array_int_inout (int *n_ints, int **ints)
new_ints = g_malloc(sizeof(**ints) * *n_ints);
for (i = 0; i < *n_ints; i++)
new_ints[i] = (*ints)[i + 1] + 1;
+
+ g_free (*ints);
*ints = new_ints;
}
}