qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] String properties defaults must be dynamically allocated


From: Liviu Ionescu
Subject: [Qemu-devel] String properties defaults must be dynamically allocated
Date: Wed, 17 Jun 2015 14:38:33 +0300

I don't know if this is a bug or a feature (to me it looks like a bug), but if 
the string pointer associated with a string property is initialised during 
inits with a pointer to a static string, the next qdev_prop_set_string() will 
fail attempting to free the static object.

the workaround is to g_strdup() the default static string.


regards,

Liviu




reply via email to

[Prev in Thread] Current Thread [Next in Thread]