diff options
| author | Russell Belfer <arrbee@arrbee.com> | 2011-12-29 21:31:30 -0800 |
|---|---|---|
| committer | Russell Belfer <arrbee@arrbee.com> | 2011-12-29 21:32:37 -0800 |
| commit | c6d2a2c0946ff32c16578b68b39824f4fea8f782 (patch) | |
| tree | f2ccc9c271e1d52793c8bea3e2f28ba03ce4db14 /src/attr.c | |
| parent | 73b51450a3194ddaa2ac180a1fea25fdf66971bb (diff) | |
| download | libgit2-c6d2a2c0946ff32c16578b68b39824f4fea8f782.tar.gz | |
Fixed up memory leaks
Diffstat (limited to 'src/attr.c')
| -rw-r--r-- | src/attr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/attr.c b/src/attr.c index fac2fa4b9..f984458d4 100644 --- a/src/attr.c +++ b/src/attr.c @@ -207,10 +207,8 @@ int git_attr_add_macro( if (error == GIT_SUCCESS) error = git_attr_cache__insert_macro(repo, macro); - if (error < GIT_SUCCESS) { + if (error < GIT_SUCCESS) git_attr_rule__free(macro); - git__free(macro); - } return error; } |
