]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
kmod-depmod: Fix leak of dependency vector
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 27 Dec 2011 16:18:32 +0000 (14:18 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 27 Dec 2011 17:21:31 +0000 (15:21 -0200)
tools/kmod-depmod.c

index 388002c9742802d7efc4ff9b7847f7dc1a5a1f9f..cf7701d45533e51f374fc78e7ffa38d9dc1e2d53 100644 (file)
@@ -2344,6 +2344,7 @@ static int output_deps_bin(struct depmod *depmod, FILE *out)
                if (duplicate && depmod->cfg->warn_dups)
                        WRN("duplicate module deps:\n%s\n", line);
                free(line);
+               free(deps);
        }
 
        index_write(idx, out);