summaryrefslogtreecommitdiffstats
path: root/runtime/rsconf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-06-05 10:51:40 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-06-05 10:51:40 +0200
commitb379e7d7a83cc2b0f5fc39fee7ef795a1bd0b51c (patch)
treef0c55ae74955fae157cf63a98528a9697c5addfd /runtime/rsconf.c
parentbac5b5abe4521c4265e493c897cb34996839d5d1 (diff)
downloadrsyslog-b379e7d7a83cc2b0f5fc39fee7ef795a1bd0b51c.tar.gz
rsyslog-b379e7d7a83cc2b0f5fc39fee7ef795a1bd0b51c.tar.xz
rsyslog-b379e7d7a83cc2b0f5fc39fee7ef795a1bd0b51c.zip
fixing small memleak during config read phase
traditional system line buffers were not freed. semi-static memory leak during config load phase, did not grow while processing messages. Usually less than 5k during the whole runtime.
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r--runtime/rsconf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c
index 460e69d6..a8c1b4b9 100644
--- a/runtime/rsconf.c
+++ b/runtime/rsconf.c
@@ -432,6 +432,7 @@ void cnfDoCfsysline(char *ln)
DBGPRINTF("cnf:global:cfsysline: %s\n", ln);
/* the legacy system needs the "$" stripped */
conf.cfsysline((uchar*) ln+1);
+ free(ln);
}
void cnfDoBSDTag(char *ln)