diff options
Diffstat (limited to 'tests/patch/parse.c')
| -rw-r--r-- | tests/patch/parse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/patch/parse.c b/tests/patch/parse.c index b89322ff3..fb185eb2a 100644 --- a/tests/patch/parse.c +++ b/tests/patch/parse.c @@ -148,3 +148,9 @@ void test_patch_parse__lifetime_of_patch_does_not_depend_on_buffer(void) git_patch_free(patch); } + +void test_patch_parse__memory_leak_on_multiple_paths(void) +{ + git_patch *patch; + cl_git_fail(git_patch_from_buffer(&patch, PATCH_MULTIPLE_OLD_PATHS, strlen(PATCH_MULTIPLE_OLD_PATHS), NULL)); +} |
