aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-git-receiver
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-06-10 19:34:05 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-06-10 19:34:05 +0200
commit71f6b433b6b6538af596d8bec2f16a375a99dce6 (patch)
tree23bcd58921eeb3d325694e4d75da11d6defca058 /src/blogc-git-receiver
parentf356ebbc13491a98c397920097494958efb042dd (diff)
downloadblogc-71f6b433b6b6538af596d8bec2f16a375a99dce6.tar.gz
blogc-71f6b433b6b6538af596d8bec2f16a375a99dce6.tar.bz2
blogc-71f6b433b6b6538af596d8bec2f16a375a99dce6.zip
git-receiver: fixed memory leak
Diffstat (limited to 'src/blogc-git-receiver')
-rw-r--r--src/blogc-git-receiver/pre-receive.c1
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;
}