summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-07-04 11:11:07 +0300
committerMartin Pitt <martin.pitt@ubuntu.com>2016-07-04 10:11:07 +0200
commit57681e84ce7c44ebc442bc3e7e22d487c4ce703a (patch)
tree8995878d84526e0f73224ede83f47eeb5a8ef6f7 /src
parent92d5a606ea20905aed84f71ab6d76799138dc06b (diff)
tests: fix memory leak in test_strv_fnmatch (#3653)
==1447== 4 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==1447== at 0x4C2BBAD: malloc (vg_replace_malloc.c:299) ==1447== by 0x5350F19: strdup (in /usr/lib64/libc-2.23.so) ==1447== by 0x4E9D435: strv_new_ap (strv.c:166) ==1447== by 0x4E9D5FA: strv_new (strv.c:199) ==1447== by 0x10E665: test_strv_fnmatch (test-strv.c:693) ==1447== by 0x10EAD5: main (test-strv.c:763) ==1447==
Diffstat (limited to 'src')
-rw-r--r--src/test/test-strv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-strv.c b/src/test/test-strv.c
index cf5887d258..f7a1217df7 100644
--- a/src/test/test-strv.c
+++ b/src/test/test-strv.c
@@ -686,7 +686,7 @@ static void test_foreach_string(void) {
}
static void test_strv_fnmatch(void) {
- _cleanup_free_ char **v = NULL;
+ _cleanup_strv_free_ char **v = NULL;
assert_se(!strv_fnmatch(STRV_MAKE_EMPTY, "a", 0));