Ver código fonte

- 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
Henning Westerholt 16 anos atrás
pai
commit
ec4a6f2a2c
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      modules/db_postgres/km_dbase.c

+ 1 - 0
modules/db_postgres/km_dbase.c

@@ -414,6 +414,7 @@ int db_postgres_store_result(const db_con_t* _con, db_res_t** _r)
 			 * (such as a SELECT or SHOW). */
 			if (db_postgres_convert_result(_con, *_r) < 0) {
 				LM_ERR("error while converting result\n");
+				LM_DBG("freeing result set at %p\n", _r);
 				pkg_free(*_r);
 				*_r = 0;
 				rc = -4;