]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libxtables: Fix file descriptor leak in xtables_lmap_init on error
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 28 Sep 2011 18:45:24 +0000 (20:45 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 28 Sep 2011 18:45:24 +0000 (20:45 +0200)
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
libxtables/xtoptions.c

index 5f617a42d549bcdd2127c010e19bd97d84975556..452e0fef523bc69fc01e03f777aee5c4f7f3d293 100644 (file)
@@ -1139,6 +1139,7 @@ struct xtables_lmap *xtables_lmap_init(const char *file)
        fclose(fp);
        return lmap_head;
  out:
+       fclose(fp);
        xtables_lmap_free(lmap_head);
        return NULL;
 }