ubox/logd: free regex's on log_shutdown() call
authorAlexandru Ardelean <ardeleanalex@gmail.com>
Sat, 24 Sep 2016 08:03:12 +0000 (11:03 +0300)
committerFelix Fietkau <nbd@nbd.name>
Sat, 24 Sep 2016 11:07:36 +0000 (13:07 +0200)
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
log/syslog.c

index e8b6774..ac4f1ae 100644 (file)
@@ -300,4 +300,6 @@ log_shutdown(void)
        close(slog.fd.fd);
        close(klog.fd.fd);
        free(log);
        close(slog.fd.fd);
        close(klog.fd.fd);
        free(log);
+       regfree(&pat_prio);
+       regfree(&pat_tstamp);
 }
 }