From: Lucas De Marchi Date: Mon, 12 Dec 2011 16:26:45 +0000 (-0200) Subject: Fix leak of DIR X-Git-Tag: v1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=016d619cd982d1f25e2756a52767eaad3bde5064;p=thirdparty%2Fkmod.git Fix leak of DIR --- diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index c98bab93..bdb290bb 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -494,9 +494,6 @@ int kmod_config_new(struct kmod_ctx *ctx, struct kmod_config **p_config, d = conf_files_list(ctx, &list, path); - /* there's no entry */ - if (list == NULL) - continue; if (d == NULL) { ERR(ctx, "returned list but no directory?\n"); while (list) {