mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 05:50:32 +01:00
libnm: fix leak in nm_utils_is_json_object()
Fixes:32f78ae6c3('libnm: expose nm_utils_is_json_object() utility function') (cherry picked from commit1cf11ccbca) (cherry picked from commit49ec86092b) (cherry picked from commit7db30ad811) (cherry picked from commitfef7d8467c) (cherry picked from commit106528e829)
This commit is contained in:
parent
455371c258
commit
463519766d
1 changed files with 1 additions and 2 deletions
|
|
@ -5814,7 +5814,7 @@ fail:
|
|||
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);
|
||||
|
|
@ -5851,7 +5851,6 @@ nm_utils_is_json_object (const char *str, GError **error)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
json_decref (json);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue