Verified Commit fef7d846 authored by Thomas Haller's avatar Thomas Haller

libnm: fix leak in nm_utils_is_json_object()

Fixes: 32f78ae6 ('libnm: expose nm_utils_is_json_object() utility function')
(cherry picked from commit 1cf11ccb)
(cherry picked from commit 49ec8609)
(cherry picked from commit 7db30ad8)
parent 853f5ea7
......@@ -5426,7 +5426,7 @@ gboolean
nm_utils_is_json_object (const char *str, GError **error)
json_t *json;
nm_auto_decref_json json_t *json = NULL;
json_error_t jerror;
g_return_val_if_fail (!error || !*error, FALSE);
......@@ -5463,7 +5463,6 @@ nm_utils_is_json_object (const char *str, GError **error)
return FALSE;
json_decref (json);
return TRUE;
g_return_val_if_fail (!error || !*error, FALSE);
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