projects
/
project
/
ubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b824302
)
ubox/logd: free regex's on log_shutdown() call
author
Alexandru Ardelean
<ardeleanalex@gmail.com>
Sat, 24 Sep 2016 08:03:12 +0000
(11:03 +0300)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/log/syslog.c
b/log/syslog.c
index e8b6774afd31080c107ae7c8277b2700efb5d7cf..ac4f1ae9770f5dbba5ac616b73c2c7132db5c002 100644
(file)
--- 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);
}