From 71f6b433b6b6538af596d8bec2f16a375a99dce6 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 10 Jun 2018 19:34:05 +0200 Subject: git-receiver: fixed memory leak --- src/blogc-git-receiver/pre-receive.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3-18-g5258