From: Vincent Bernat Date: Wed, 3 Jul 2013 21:02:06 +0000 (+0200) Subject: lldpd: fix a fd leak when we cannot write the new alias X-Git-Tag: 0.7.6~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a723384557d886c1ba7e322975b178109e03cdc;p=thirdparty%2Flldpd.git lldpd: fix a fd leak when we cannot write the new alias --- 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);