path-lookup: use correct cleanup function for strv (#5007)
authorThomas H. P. Andersen <phomes@gmail.com>
Tue, 3 Jan 2017 20:02:39 +0000 (21:02 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Tue, 3 Jan 2017 20:02:39 +0000 (21:02 +0100)
src/shared/path-lookup.c

index a23d099..586ef64 100644 (file)
@@ -139,7 +139,7 @@ static char** user_dirs(
         const char *e;
         _cleanup_strv_free_ char **config_dirs = NULL, **data_dirs = NULL;
         _cleanup_free_ char *data_home = NULL;
-        _cleanup_free_ char **res = NULL;
+        _cleanup_strv_free_ char **res = NULL;
         char **tmp;
         int r;