From: Alexandru Ardelean Date: Sat, 24 Sep 2016 08:03:12 +0000 (+0300) Subject: ubox/logd: free regex's on log_shutdown() call X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4a039a46293c73811154f886bd0c1c891cb2e095;p=oweals%2Fubox.git ubox/logd: free regex's on log_shutdown() call Signed-off-by: Alexandru Ardelean --- 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); }