[OpenSIPS-Devel] Memory not released for DB_STR or DB_STRING types on db_mysql

Chevio emercado at rapidlink.com
Tue Mar 17 16:50:29 CET 2009


I noticed that for db_mysql the VAL_FREE condition is never set to 1 for 
DB_STR or DB_STRING types on  db_mysql/val.c, therefore when calling
db_free_row in
db/db_row.c the conditions

case DB_STRING:
	if ( (!VAL_NULL(_val)) && VAL_FREE(_val)) { 


case DB_STR:
           if ( (!VAL_NULL(_val)) && VAL_FREE(_val)) { 

always evaluate to 0, therefore not releasing the memory.

Am I missing something ?

Chevio
-- 
View this message in context: http://n2.nabble.com/Memory-not-released-for-DB_STR-or-DB_STRING-types-on-db_mysql-tp2492177p2492177.html
Sent from the OpenSIPS - Devel mailing list archive at Nabble.com.




More information about the Devel mailing list