[asterisk-commits] mmichelson: trunk r92808 - in /trunk: ./ apps/app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 13 14:12:37 CST 2007


Author: mmichelson
Date: Thu Dec 13 14:12:37 2007
New Revision: 92808

URL: http://svn.digium.com/view/asterisk?view=rev&rev=92808
Log:
Merged revisions 92807 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r92807 | mmichelson | 2007-12-13 14:03:20 -0600 (Thu, 13 Dec 2007) | 3 lines

Prevent another potential fd leak


........

Modified:
    trunk/   (props changed)
    trunk/apps/app_voicemail.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=92808&r1=92807&r2=92808
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Thu Dec 13 14:12:37 2007
@@ -2528,6 +2528,7 @@
 	rewind(p);
 	if (!(buf = ast_malloc(len+1))) {
 		ast_log(LOG_ERROR, "Can't allocate %ld bytes to read message\n", len+1);
+		fclose(p);
 		if(tempcopy)
 			*(vmu->email) = '\0';
 		return -1;




More information about the asterisk-commits mailing list