[asterisk-commits] russell: branch 1.2 r46876 - /branches/1.2/callerid.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Nov 2 06:55:41 MST 2006


Author: russell
Date: Thu Nov  2 07:55:39 2006
New Revision: 46876

URL: http://svn.digium.com/view/asterisk?rev=46876&view=rev
Log:
Add a missing call to free before returning in an error condition
(issue #8268, mrness)

Modified:
    branches/1.2/callerid.c

Modified: branches/1.2/callerid.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/callerid.c?rev=46876&r1=46875&r2=46876&view=diff
==============================================================================
--- branches/1.2/callerid.c (original)
+++ branches/1.2/callerid.c Thu Nov  2 07:55:39 2006
@@ -280,6 +280,7 @@
 		buf += (olen - mylen);
 		if (res < 0) {
 			ast_log(LOG_NOTICE, "fsk_serie failed\n");
+			free(obuf);
 			return -1;
 		}
 		if (res == 1) {



More information about the asterisk-commits mailing list