]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Fix leak of DIR
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 12 Dec 2011 16:26:45 +0000 (14:26 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 12 Dec 2011 16:39:35 +0000 (14:39 -0200)
libkmod/libkmod-config.c

index c98bab938961a6bbc46d65e2767c48c45ed5b6ad..bdb290bb40111bd420fb486d10a67f740ecba431 100644 (file)
@@ -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) {