diff options
Diffstat (limited to 'save-git.c')
-rw-r--r-- | save-git.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/save-git.c b/save-git.c index 0ba6e9801..a1ef022fb 100644 --- a/save-git.c +++ b/save-git.c @@ -1093,6 +1093,7 @@ struct git_repository *is_git_repository(const char *filename, const char **bran if (stat(loc, &st) < 0 || !S_ISDIR(st.st_mode)) { free(loc); + free(branch); return dummy_git_repository; } |