- Let the function returns properly allocated gchar* in fallback case.
- Fix memleak (g_strfreev).
- Fix memleak in a testcase.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
"Invalid value for the key, %s", JSON_KEY_MODEL_PATH);
goto fallback;
}
+
+ g_strfreev (parts);
return g_strdup (path);
}
}
g_clear_error (&err);
g_strfreev (parts);
- return uri;
+ return g_strdup (uri);
}
* the given URI as it is so that it is handled by the fallback procedure (i.e., regarding it as a file path).
*/
EXPECT_STREQ (uri, path);
+
+ g_value_reset (&val);
}
/**