From: Lucas De Marchi Date: Tue, 27 Dec 2011 16:18:32 +0000 (-0200) Subject: kmod-depmod: Fix leak of dependency vector X-Git-Tag: v3~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea1b8c3702c2e8d9fc7b818a2a519475f37e9ade;p=thirdparty%2Fkmod.git kmod-depmod: Fix leak of dependency vector --- diff --git a/tools/kmod-depmod.c b/tools/kmod-depmod.c index 388002c9..cf7701d4 100644 --- a/tools/kmod-depmod.c +++ b/tools/kmod-depmod.c @@ -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);