Commit dce296a4 authored by Jussi Kukkonen's avatar Jussi Kukkonen

do not leak the string in gc_web_service_get_string()

Bug 18987
parent 5b5bcc9b
......@@ -401,7 +401,7 @@ gc_web_service_get_string (GcWebService *self, gchar **value, gchar* xpath)
if (!obj) {
return FALSE;
*value = g_strdup ((char*)xmlXPathCastNodeSetToString (obj->nodesetval));
*value = (char*)xmlXPathCastNodeSetToString (obj->nodesetval);
xmlXPathFreeObject (obj);
return TRUE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment