Signed-off-by: Markus Armbruster <arm...@redhat.com> --- qemu-log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qemu-log.c b/qemu-log.c index b655b30..64a1b88 100644 --- a/qemu-log.c +++ b/qemu-log.c @@ -84,7 +84,7 @@ void qemu_set_log(int log_flags, bool use_own_buffers) void cpu_set_log_filename(const char *filename) { - logfilename = strdup(filename); + logfilename = g_strdup(filename); if (qemu_logfile) { fclose(qemu_logfile); qemu_logfile = NULL; -- 1.7.11.7