[asterisk-commits] mmichelson: branch 1.4 r92807 - /branches/1.4/apps/app_voicemail.c

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


Author: mmichelson
Date: Thu Dec 13 14:03:20 2007
New Revision: 92807

URL: http://svn.digium.com/view/asterisk?view=rev&rev=92807
Log:
Prevent another potential fd leak


Modified:
    branches/1.4/apps/app_voicemail.c

Modified: branches/1.4/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_voicemail.c?view=diff&rev=92807&r1=92806&r2=92807
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Thu Dec 13 14:03:20 2007
@@ -2356,6 +2356,7 @@
 		rewind(p);
 		if((buf = ast_malloc(len+1)) == NIL) {
 			ast_log(LOG_ERROR, "Can't allocate %ld bytes to read message\n", len+1);
+			fclose(p);
 			return -1;
 		}
 		fread(buf, len, 1, p);




More information about the asterisk-commits mailing list