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 e8b6774afd31080c107ae7c8277b2700efb5d7cf..ac4f1ae9770f5dbba5ac616b73c2c7132db5c002 100644 (file)
@@ -300,4 +300,6 @@ log_shutdown(void)
        close(slog.fd.fd);
        close(klog.fd.fd);
        free(log);
+       regfree(&pat_prio);
+       regfree(&pat_tstamp);
 }