summaryrefslogtreecommitdiff
path: root/test/gjs-test-call-args.cpp
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2017-02-26 16:54:21 -0800
committerPhilip Chimento <philip@endlessm.com>2017-02-27 15:59:47 -0800
commit165b5b94740222adc862f16b2d23f9e83f06b8b4 (patch)
treec6982e703ecfc7a8a45ee03164b7d7c384e70540 /test/gjs-test-call-args.cpp
parent48dc12c0af0a0fd252e861ff11d822488eb16f63 (diff)
downloadgjs-165b5b94740222adc862f16b2d23f9e83f06b8b4.tar.gz
maint: Fix memory leaks
Some memory leaks uncovered by Valgrind. https://bugzilla.gnome.org/show_bug.cgi?id=779293
Diffstat (limited to 'test/gjs-test-call-args.cpp')
-rw-r--r--test/gjs-test-call-args.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/gjs-test-call-args.cpp b/test/gjs-test-call-args.cpp
index 90414a32..9eea2735 100644
--- a/test/gjs-test-call-args.cpp
+++ b/test/gjs-test-call-args.cpp
@@ -108,6 +108,8 @@ JSNATIVE_TEST_FUNC_BEGIN(one_of_each_type)
g_assert_cmpint(int64val, ==, 1);
g_assert_cmpfloat(dblval, ==, 1.0);
g_assert_nonnull(objval);
+ g_free(strval);
+ g_free(fileval);
JSNATIVE_TEST_FUNC_END
JSNATIVE_TEST_FUNC_BEGIN(optional_args_all)