[svn-commits] tilghman: trunk r139707 - /trunk/cdr/cdr_pgsql.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Aug 24 11:26:48 CDT 2008


Author: tilghman
Date: Sun Aug 24 11:26:48 2008
New Revision: 139707

URL: http://svn.digium.com/view/asterisk?view=rev&rev=139707
Log:
Memory leak

Modified:
    trunk/cdr/cdr_pgsql.c

Modified: trunk/cdr/cdr_pgsql.c
URL: http://svn.digium.com/view/asterisk/trunk/cdr/cdr_pgsql.c?view=diff&rev=139707&r1=139706&r2=139707
==============================================================================
--- trunk/cdr/cdr_pgsql.c (original)
+++ trunk/cdr/cdr_pgsql.c Sun Aug 24 11:26:48 2008
@@ -292,6 +292,8 @@
 				conn = NULL;
 				connected = 0;
 				ast_mutex_unlock(&pgsql_lock);
+				ast_free(sql);
+				ast_free(sql2);
 				return -1;
 			}
 		}




More information about the svn-commits mailing list