Skip to contentSkip to conversation

Fix file descriptor leak on error

PATCH Applied Thomas Jarosch 2 participants 2 messages Sep 5, 2011 – Sep 28, 2011 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Fix file descriptor leak on error

---
 iptables/xtoptions.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
iptables/xtoptions.c +1 -0
index 04344af..4ee68fb 100644
@@ -1133,6 +1133,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;
 }
Signature · 1 line
1.7.4.4