summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-09-11 19:29:47 -0700
committerColin Walters <walters@verbum.org>2015-10-19 18:22:53 -0400
commitdcf87051f8ffd7b2bfc48d2e723b208c3345434c (patch)
tree2705d0400a87e2adff90f4cc99aef5a392ac5ecd
parente1bd35241ba6bd0815e0b044b112d1799e1154c9 (diff)
downloadgobject-introspection-dcf87051f8ffd7b2bfc48d2e723b208c3345434c.tar.gz
tests: Free input string in regress_test_utf8_inout()
Transfer is annotated as full so the function should free its input after testing and before output assignment. https://bugzilla.gnome.org/show_bug.cgi?id=736517
-rw-r--r--tests/scanner/regress.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c
index b842e2f6..59dafaa4 100644
--- a/tests/scanner/regress.c
+++ b/tests/scanner/regress.c
@@ -520,6 +520,7 @@ regress_test_utf8_inout (char **inout)
{
/* inout parameter, transfer mode full */
g_assert (strcmp (*inout, utf8_const) == 0);
+ g_free (*inout);
*inout = g_strdup (utf8_nonconst);
}