summaryrefslogtreecommitdiff
path: root/sysklogd/syslogd.c
diff options
context:
space:
mode:
authorMatt Kraai2001-07-19 15:00:14 +0000
committerMatt Kraai2001-07-19 15:00:14 +0000
commitc1cda4a6091902bdb81cb8938838f4b26ddc52cf (patch)
treed372e32f465bdddb1a900a13303ed9ead4d0320f /sysklogd/syslogd.c
parent81108e7653583508bfc541748845183c56e0e378 (diff)
downloadbusybox-c1cda4a6091902bdb81cb8938838f4b26ddc52cf.zip
busybox-c1cda4a6091902bdb81cb8938838f4b26ddc52cf.tar.gz
Add a RELEASE_BB_BUFFER macro and use it to fix a memory leak in syslogd.c
(noted by Adam Slattery).
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r--sysklogd/syslogd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 8ae70a1..14219eb 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -431,6 +431,7 @@ static int serveConnection (int conn)
/* Now log it */
logMessage (pri, line);
}
+ RELEASE_BB_BUFFER (tmpbuf);
return n_read;
}