]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/bus-proxyd/bus-xml-policy.c
tree-wide: introduce mfree()
[thirdparty/systemd.git] / src / bus-proxyd / bus-xml-policy.c
index dab5acbcb4e70725b663370c51df8c595937d7b3..9a3b451c56a4f6059bcf507c4590bc6229247dd2 100644 (file)
@@ -586,10 +586,8 @@ static int file_load(Policy *p, const char *path) {
                                 case POLICY_ITEM_SEND:
                                 case POLICY_ITEM_RECV:
 
-                                        if (streq(name, "*")) {
-                                                free(name);
-                                                name = NULL;
-                                        }
+                                        if (streq(name, "*"))
+                                                name = mfree(name);
                                         break;