diff options
| author | Sebastien Bacher <seb128@ubuntu.com> | 2020-07-27 17:03:33 +0200 |
|---|---|---|
| committer | Sebastien Bacher <seb128@ubuntu.com> | 2020-07-27 17:03:33 +0200 |
| commit | b92fc658301eb82b80167a31179c9b839f151b18 (patch) | |
| tree | 26e2203952eef4ee60e58c6904755e5508150a26 /libnm-core/nm-utils.c | |
| parent | 486e0bef719d78ee55d2166b0bfb4fa684c09854 (diff) | |
| parent | 136d191f1c96dbae1489fed7c2565f5e1b1f8d40 (diff) | |
Merge branch 'upstream/latest' of https://salsa.debian.org/utopia-team/network-manager into upstream/latest
Diffstat (limited to 'libnm-core/nm-utils.c')
| -rw-r--r-- | libnm-core/nm-utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm-core/nm-utils.c b/libnm-core/nm-utils.c index c88afb32..425c3027 100644 --- a/libnm-core/nm-utils.c +++ b/libnm-core/nm-utils.c @@ -5428,7 +5428,7 @@ gboolean nm_utils_is_json_object (const char *str, GError **error) { #if WITH_JSON_VALIDATION - json_t *json; + nm_auto_decref_json json_t *json = NULL; json_error_t jerror; g_return_val_if_fail (!error || !*error, FALSE); @@ -5465,7 +5465,6 @@ nm_utils_is_json_object (const char *str, GError **error) return FALSE; } - json_decref (json); return TRUE; #else /* !WITH_JSON_VALIDATION */ g_return_val_if_fail (!error || !*error, FALSE); |