summaryrefslogtreecommitdiff
path: root/log
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2016-09-24 11:03:12 +0300
committerFelix Fietkau <nbd@nbd.name>2016-09-24 13:07:36 +0200
commit4a039a46293c73811154f886bd0c1c891cb2e095 (patch)
tree60e3bbe704e955effeef6b14a2108a55d2a2809d /log
parentb824302bad8d73a5575d3bf1ede3e630fbb30dcd (diff)
downloadubox-4a039a46293c73811154f886bd0c1c891cb2e095.tar.gz
ubox/logd: free regex's on log_shutdown() call
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Diffstat (limited to 'log')
-rw-r--r--log/syslog.c2
1 files changed, 2 insertions, 0 deletions
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);
}