summaryrefslogtreecommitdiff
path: root/src/diff_tform.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2015-03-04 00:29:37 +0100
committerCarlos Martín Nieto <cmn@dwim.me>2015-03-04 00:29:37 +0100
commitfe21d708b02c1b35c0ea717889ea633fe78eabaf (patch)
tree9749f518a2d4e80c7b44bb238260c45a6b48d65b /src/diff_tform.c
parent9ce97782b412edb55b4bf8cb63e863d49745e09d (diff)
downloadlibgit2-fe21d708b02c1b35c0ea717889ea633fe78eabaf.tar.gz
Plug a few leaks
Diffstat (limited to 'src/diff_tform.c')
-rw-r--r--src/diff_tform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/diff_tform.c b/src/diff_tform.c
index 8ee568cf4..06c12308b 100644
--- a/src/diff_tform.c
+++ b/src/diff_tform.c
@@ -277,7 +277,7 @@ static int normalize_find_opts(
if (!given ||
(given->flags & GIT_DIFF_FIND_ALL) == GIT_DIFF_FIND_BY_CONFIG)
{
- const char *rule =
+ char *rule =
git_config__get_string_force(cfg, "diff.renames", "true");
int boolval;
@@ -287,6 +287,8 @@ static int normalize_find_opts(
opts->flags |= GIT_DIFF_FIND_RENAMES | GIT_DIFF_FIND_COPIES;
else
opts->flags |= GIT_DIFF_FIND_RENAMES;
+
+ git__free(rule);
}
/* some flags imply others */