projects
/
project
/
ubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
kmodloader: fix out-of-bound access when parsing .modinfo
[project/ubox.git]
/
log
/
syslog.c
diff --git
a/log/syslog.c
b/log/syslog.c
index
a596b48
..
ac4f1ae
100644
(file)
--- a/
log/syslog.c
+++ b/
log/syslog.c
@@
-66,7
+66,7
@@
log_add(char *buf, int size, int source)
/* bounce out if we don't have init'ed yet (regmatch etc will blow) */
if (!log) {
- fprintf(stderr, buf);
+ fprintf(stderr,
"%s",
buf);
return;
}
@@
-300,4
+300,6
@@
log_shutdown(void)
close(slog.fd.fd);
close(klog.fd.fd);
free(log);
+ regfree(&pat_prio);
+ regfree(&pat_tstamp);
}