2
0
Эх сурвалжийг харах

db_text: free pointer in case of error

Daniel-Constantin Mierla 5 жил өмнө
parent
commit
bddf16db74

+ 1 - 0
src/modules/db_text/dbt_base.c

@@ -100,6 +100,7 @@ db1_con_t* dbt_init(const str* _sqlurl)
 	if (!DBT_CON_CONNECTION(_res))
 	{
 		LM_ERR("cannot get the link to database\n");
+		pkg_free(_res);
 		return NULL;
 	}