summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index 00bb43f..01b4256 100644
--- a/src/log.c
+++ b/src/log.c
@@ -150,6 +150,8 @@ log_message(int level, char *fmt, ...)
sprintf(entry_buffer, "%d %s", level, str);
vector_append(log_message_storage, entry_buffer,
strlen(entry_buffer) + 1);
+
+ safefree(entry_buffer);
goto out;
}
#ifdef HAVE_SYSLOG_H