summaryrefslogtreecommitdiff
path: root/src/attr_file.c
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-12-24 11:42:50 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-12-29 18:18:49 +0200
commit6f73e02605f57db20b8713053d55fef4b534f07b (patch)
tree9dc9140be76f4f627cf20a648c5d509ffe27542c /src/attr_file.c
parent5692dcf181d26069d68d460fc9179c8c96fa3795 (diff)
downloadlibgit2-6f73e02605f57db20b8713053d55fef4b534f07b.tar.gz
Plug some leaks
Diffstat (limited to 'src/attr_file.c')
-rw-r--r--src/attr_file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/attr_file.c b/src/attr_file.c
index b3efeefd7..5b008b0e3 100644
--- a/src/attr_file.c
+++ b/src/attr_file.c
@@ -781,8 +781,10 @@ int git_attr_assignment__parse(
error = git_vector_insert_sorted(
assigns, massign, &merge_assignments);
- if (error < 0 && error != GIT_EEXISTS)
+ if (error < 0 && error != GIT_EEXISTS) {
+ git_attr_assignment__free(assign);
return error;
+ }
}
}
}