[LEDE-DEV] [PATCH 1/2] ubox/logd: free regex's on log_shutdown() call

Alexandru Ardelean ardeleanalex at gmail.com
Sat Sep 24 01:03:12 PDT 2016


Signed-off-by: Alexandru Ardelean <ardeleanalex at gmail.com>
---
 log/syslog.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/log/syslog.c b/log/syslog.c
index e8b6774..ac4f1ae 100644
--- a/log/syslog.c
+++ b/log/syslog.c
@@ -300,4 +300,6 @@ log_shutdown(void)
 	close(slog.fd.fd);
 	close(klog.fd.fd);
 	free(log);
+	regfree(&pat_prio);
+	regfree(&pat_tstamp);
 }
-- 
1.9.1




More information about the Lede-dev mailing list