diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-05 10:51:40 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-06-05 10:51:40 +0200 |
commit | b379e7d7a83cc2b0f5fc39fee7ef795a1bd0b51c (patch) | |
tree | f0c55ae74955fae157cf63a98528a9697c5addfd | |
parent | bac5b5abe4521c4265e493c897cb34996839d5d1 (diff) | |
download | rsyslog-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.
-rw-r--r-- | runtime/rsconf.c | 1 |
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) |