diff options
author | Thomas Haller <thaller@redhat.com> | 2018-03-22 16:49:38 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-03-22 16:49:38 +0100 |
commit | de750acee7d400dc0e13af9799905b7b6e306255 (patch) | |
tree | f076bfa4dc43a051e6a51f7bea5d2fe79807c99a | |
parent | 6493bd443f6c1d089919f0bb63c735bc2a76fc75 (diff) | |
download | NetworkManager-de750acee7d400dc0e13af9799905b7b6e306255.tar.gz |
platform: assert for valid argument in nmp_object_unref()
-rw-r--r-- | src/platform/nmp-object.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/platform/nmp-object.h b/src/platform/nmp-object.h index 91eb2f5106..0dd2687a35 100644 --- a/src/platform/nmp-object.h +++ b/src/platform/nmp-object.h @@ -467,6 +467,8 @@ nmp_object_ref (const NMPObject *obj) static inline void nmp_object_unref (const NMPObject *obj) { + nm_assert (!obj || NMP_OBJECT_IS_VALID (obj)); + nm_dedup_multi_obj_unref ((const NMDedupMultiObj *) obj); } |