[SR-Dev] git:janakj/mysql: - add one DBG log to each drivers error condition, that the mem is freed

Jan Janak jan at iptel.org
Mon Feb 16 22:07:54 CET 2009


Module: sip-router
Branch: janakj/mysql
Commit: d26ebfbb0c1a2c000fd57e2c9eec93e89a4a12cd
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d26ebfbb0c1a2c000fd57e2c9eec93e89a4a12cd

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Wed Jan  7 14:46:10 2009 +0000

- add one DBG log to each drivers error condition, that the mem is freed


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@5431 689a6050-402a-0410-94f2-e92a70836424

---

 modules/db_mysql/km_dbase.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/db_mysql/km_dbase.c b/modules/db_mysql/km_dbase.c
index ecc3106..ed79a17 100644
--- a/modules/db_mysql/km_dbase.c
+++ b/modules/db_mysql/km_dbase.c
@@ -178,6 +178,7 @@ static int db_mysql_store_result(const db_con_t* _h, db_res_t** _r)
 
 	if (db_mysql_convert_result(_h, *_r) < 0) {
 		LM_ERR("error while converting result\n");
+		LM_DBG("freeing result set at %p\n", _r);
 		pkg_free(*_r);
 		*_r = 0;
 		/* all mem on openser API side is already freed by




More information about the sr-dev mailing list