DBusString: fix may crash if try to free an uninitialized str
authorChengwei Yang <chengwei.yang@intel.com>
Thu, 20 Jun 2013 09:24:04 +0000 (17:24 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 20 Jun 2013 12:16:25 +0000 (13:16 +0100)
commit8eb29fda102be3bd27b04a0b2d7f53a4dfb01f62
treeda58ad2542d772a3235e41753da5702ae3b48a64
parentba0f90c16fa502e81e74db7d2834c27e239b45ba
DBusString: fix may crash if try to free an uninitialized str

If the str will be freed hasn't been initialized by _dbus_string_init
correctly, _dbus_string_free may crash due to trying to free an
undefined memory.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=65959
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-string.c