chiark / gitweb /
systemctl: use automatic cleanup
[elogind.git] / src / shared / dbus-common.c
index 0c73d6c6a870b04b1419f6fb9614df56f941a2e8..c53bf59eb396575d3d40c16abcad745bffa38ad1 100644 (file)
@@ -1318,3 +1318,9 @@ finish:
 
         return r;
 }
+
+
+void dbus_message_unref_p(DBusMessage **reply) {
+        if (*reply)
+                dbus_message_unref(*reply);
+}