chiark / gitweb /
terminal/screen: mark cursor dirty on enabled/disable
[elogind.git] / src / bus-proxyd / test-bus-policy.c
index 900e4d2b067e3d4bde308c4639d4603dc2afbe62..5267788b704d145e3b2241b9eed81901b601f4b6 100644 (file)
@@ -36,7 +36,6 @@
 #include "bus-internal.h"
 #include "bus-message.h"
 #include "bus-util.h"
-#include "bus-internal.h"
 #include "build.h"
 #include "strv.h"
 #include "def.h"
 
 static int test_policy_load(Policy *p, const char *name)
 {
-        char *path;
+        _cleanup_free_ char *path = NULL;
         int r = 0;
 
         path = strjoin(TEST_DIR, "/bus-policy/", name, NULL);
+        assert_se(path);
 
         if (access(path, R_OK) == 0)
                 policy_load(p, STRV_MAKE(path));
         else
                 r = -ENOENT;
 
-        free(path);
-
         return r;
 }