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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Dec 13 13:49:56 CST 2007


Author: mmichelson
Date: Thu Dec 13 13:49:55 2007
New Revision: 92803

URL: http://svn.digium.com/view/asterisk?view=rev&rev=92803
Log:
Prevent a possible 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=92803&r1=92802&r2=92803
==============================================================================
--- branches/1.4/apps/app_voicemail.c (original)
+++ branches/1.4/apps/app_voicemail.c Thu Dec 13 13:49:55 2007
@@ -1686,10 +1686,10 @@
 		}
 	}
 
+	fclose(fi);
+	
 	if (fputs(eol,so)==EOF)
 		return 0;
-
-	fclose(fi);
 
 	return 1;
 }




More information about the asterisk-commits mailing list