/pidgin/main: 9e2fc11fc387: Coverity: fix a file descriptor leak

Tomasz Wasilczyk <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 9e2fc11fc3876e5f1424e109e106270d86cde6d2
Author:	 Tomasz Wasilczyk <[email protected]>
Date:	 2014-05-15 21:11 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/9e2fc11fc387

Description:

Coverity: fix a file descriptor leak

diffstat:

 libpurple/ntlm.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff --git a/libpurple/ntlm.c b/libpurple/ntlm.c
--- a/libpurple/ntlm.c
+++ b/libpurple/ntlm.c
@@ -246,6 +246,7 @@ gensesskey(char *buffer)
 					G_GSSIZE_FORMAT ".  Falling back to "
 					"inferior method\n", (gssize)red);
 		}
+		close(fd);
 	} else {
 		purple_debug_warning("ntlm", "Error opening /dev/urandom: %s."
 				"  Falling back to inferior method.\n", g_strerror(errno));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.