summaryrefslogtreecommitdiff
path: root/tests/scanner
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scanner')
-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;
}
}