Verified Commit 7db30ad8 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)
parent 92bded74
Pipeline #186301 passed with stage
in 27 minutes and 51 seconds
......@@ -5394,7 +5394,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);
......@@ -5431,7 +5431,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