[svn-commits] tilghman: trunk r261917 - /trunk/funcs/func_odbc.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri May 7 15:54:39 CDT 2010


Author: tilghman
Date: Fri May  7 15:54:35 2010
New Revision: 261917

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=261917
Log:
Double free crash

(closes issue #17245)
 Reported by: thedavidfactor
 Patches: 
       20100426__issue17245.diff.txt uploaded by tilghman (license 14)
 Tested by: murraytm

Modified:
    trunk/funcs/func_odbc.c

Modified: trunk/funcs/func_odbc.c
URL: http://svnview.digium.com/svn/asterisk/trunk/funcs/func_odbc.c?view=diff&rev=261917&r1=261916&r2=261917
==============================================================================
--- trunk/funcs/func_odbc.c (original)
+++ trunk/funcs/func_odbc.c Fri May  7 15:54:35 2010
@@ -331,6 +331,7 @@
 
 			if (obj && !transactional) {
 				ast_odbc_release_obj(obj);
+				obj = NULL;
 			}
 		}
 	}
@@ -350,6 +351,8 @@
 				SQLRowCount(stmt, &rows);
 				break;
 			}
+			ast_odbc_release_obj(obj);
+			obj = NULL;
 		}
 	} else if (stmt) {
 		status = "SUCCESS";




More information about the svn-commits mailing list