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

Tomasz Wasilczyk twasilczyk at pidgin.im
Thu May 15 17:02:30 EDT 2014


Changeset: 9e2fc11fc3876e5f1424e109e106270d86cde6d2
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
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));



More information about the Commits mailing list