chiark / gitweb /
systemctl: fail in the case that no unit files were found
[elogind.git] / src / shared / path-lookup.c
index 7a715b713375cb23aa8798762c266e535c6e1e49..40fb0b8b4a6b8cee2916dd4b588a8e7c7cb57406 100644 (file)
@@ -212,7 +212,7 @@ int lookup_paths_init(
         if (!p->unit_path || append) {
                 /* Let's figure something out. */
 
-                char **unit_path;
+                _cleanup_strv_free_ char **unit_path;
                 int r;
 
                 /* For the user units we include share/ in the search