Fix memory leak in logf_impl
This commit is contained in:
parent
677376795f
commit
ffaceca711
|
@ -56,6 +56,7 @@ void logf_impl(const char *message, const char *file, int line, const char *func
|
||||||
|
|
||||||
vsyslog(LOG_INFO, msg, args);
|
vsyslog(LOG_INFO, msg, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
|
free(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
int quit_if_fail(int err, const char *failMessage) {
|
int quit_if_fail(int err, const char *failMessage) {
|
||||||
|
|
Loading…
Reference in a new issue