summaryrefslogtreecommitdiff
path: root/tests/submodule
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2018-05-24 20:28:36 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2018-05-24 20:28:36 +0200
commit9e723db877f3c310f826f517ebe509722aad22eb (patch)
tree79042afcbc2d8ff8c81044845609e2c533d9e2db /tests/submodule
parentc16ebaa6bd68d656e13c627f07920466846d5ab6 (diff)
downloadlibgit2-9e723db877f3c310f826f517ebe509722aad22eb.tar.gz
submodule: plug leaks from the escape detection
Diffstat (limited to 'tests/submodule')
-rw-r--r--tests/submodule/escape.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/submodule/escape.c b/tests/submodule/escape.c
index 0a3c4a3b8..f5c3cd4cd 100644
--- a/tests/submodule/escape.c
+++ b/tests/submodule/escape.c
@@ -43,6 +43,7 @@ void test_submodule_escape__from_gitdir(void)
"[submodule \"" EVIL_SM_NAME "\"]\n"
" path = testrepo\n"
" url = ../testrepo.git\n");
+ git_buf_free(&buf);
/* Find it all the different ways we know about it */
foundit = 0;
@@ -76,6 +77,7 @@ void test_submodule_escape__from_gitdir_windows(void)
"[submodule \"" EVIL_SM_NAME_WINDOWS "\"]\n"
" path = testrepo\n"
" url = ../testrepo.git\n");
+ git_buf_free(&buf);
/* Find it all the different ways we know about it */
foundit = 0;