From 3a723384557d886c1ba7e322975b178109e03cdc Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 3 Jul 2013 23:02:06 +0200 Subject: [PATCH] lldpd: fix a fd leak when we cannot write the new alias --- src/daemon/priv-linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/daemon/priv-linux.c b/src/daemon/priv-linux.c index 8a762bcd..fef0a1f9 100644 --- a/src/daemon/priv-linux.c +++ b/src/daemon/priv-linux.c @@ -247,6 +247,7 @@ asroot_iface_description_os(const char *name, const char *description) if (fputs(descr, fp) == EOF) { log_debug("privsep", "cannot set interface description for %s", name); + fclose(fp); return -1; } fclose(fp); -- 2.39.5