diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-05 16:21:57 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-06-22 17:02:55 +0200 |
commit | adb58f7d646091f835d900867e22cb8329799dd2 (patch) | |
tree | df933fce3b02cbd30f35fecf876b727fa4905c4c | |
parent | 961861fafad45c9eab29f523e51261ba78ab10be (diff) | |
download | libgit2-adb58f7d646091f835d900867e22cb8329799dd2.tar.gz |
submodule: fix potential leak in the tests
-rw-r--r-- | tests/submodule/submodule_helpers.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/submodule/submodule_helpers.c b/tests/submodule/submodule_helpers.c index d5e02360a..2647e1514 100644 --- a/tests/submodule/submodule_helpers.c +++ b/tests/submodule/submodule_helpers.c @@ -156,10 +156,9 @@ void refute__submodule_exists( git_repository *repo, const char *name, int expected_error, const char *msg, const char *file, int line) { - git_submodule *sm; clar__assert_equal( file, line, msg, 1, "%i", - expected_error, (int)(git_submodule_lookup(&sm, repo, name))); + expected_error, (int)(git_submodule_lookup(NULL, repo, name))); } unsigned int get_submodule_status(git_repository *repo, const char *name) |