[Asterisk-cvs] asterisk/cdr cdr_odbc.c,1.15.2.1,1.15.2.2

russell at lists.digium.com russell at lists.digium.com
Thu Nov 25 01:15:22 CST 2004


Update of /usr/cvsroot/asterisk/cdr
In directory mongoose.digium.com:/tmp/cvs-serv20020/cdr

Modified Files:
      Tag: v1-0
	cdr_odbc.c 
Log Message:
fix mem leak (bug #2940)


Index: cdr_odbc.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr/cdr_odbc.c,v
retrieving revision 1.15.2.1
retrieving revision 1.15.2.2
diff -u -d -r1.15.2.1 -r1.15.2.2
--- cdr_odbc.c	5 Oct 2004 02:02:17 -0000	1.15.2.1
+++ cdr_odbc.c	25 Nov 2004 06:14:50 -0000	1.15.2.2
@@ -161,6 +161,7 @@
 		if (option_verbose > 10)
 			ast_verbose( VERBOSE_PREFIX_4 "cdr_odbc: Query FAILED Call not logged!\n");
 	}
+	SQLFreeHandle(SQL_HANDLE_STMT, ODBC_stmt);
 	ast_mutex_unlock(&odbc_lock);
 	return 0;
 }




More information about the svn-commits mailing list