From: Thomas H. P. Andersen Date: Tue, 3 Jan 2017 20:02:39 +0000 (+0100) Subject: path-lookup: use correct cleanup function for strv (#5007) X-Git-Tag: v233~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcd574d4c10850f1b27146c0e9b07518ea7b9728;p=thirdparty%2Fsystemd.git path-lookup: use correct cleanup function for strv (#5007) --- diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c index a23d09967e4..586ef64e722 100644 --- a/src/shared/path-lookup.c +++ b/src/shared/path-lookup.c @@ -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;