diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-06-10 19:34:05 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-06-10 19:34:05 +0200 |
commit | 71f6b433b6b6538af596d8bec2f16a375a99dce6 (patch) | |
tree | 23bcd58921eeb3d325694e4d75da11d6defca058 /src | |
parent | f356ebbc13491a98c397920097494958efb042dd (diff) | |
download | blogc-71f6b433b6b6538af596d8bec2f16a375a99dce6.tar.gz blogc-71f6b433b6b6538af596d8bec2f16a375a99dce6.tar.bz2 blogc-71f6b433b6b6538af596d8bec2f16a375a99dce6.zip |
git-receiver: fixed memory leak
Diffstat (limited to 'src')
-rw-r--r-- | src/blogc-git-receiver/pre-receive.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blogc-git-receiver/pre-receive.c b/src/blogc-git-receiver/pre-receive.c index 2081b4f..7bb9cec 100644 --- a/src/blogc-git-receiver/pre-receive.c +++ b/src/blogc-git-receiver/pre-receive.c @@ -126,6 +126,7 @@ bgr_pre_receive_hook(int argc, char *argv[]) const char *sym_tmp = bc_config_get(config, section, "symlink"); if (sym_tmp == NULL) { + free(section); bc_config_free(config); goto default_sym; } |