Browse Source

- don't free dbtext values in core DB api, the module will free along with the internal structure (related to #1891453 reported by Ovidiu Sas)
- formatted some logs to fit 80char line


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

Daniel-Constantin Mierla 17 years ago
parent
commit
a8250d07a5
1 changed files with 4 additions and 2 deletions
  1. 4 2
      lib/srdb1/db_row.c

+ 4 - 2
lib/srdb1/db_row.c

@@ -62,7 +62,8 @@ inline int db_free_row(db_row_t* _r)
 		switch (VAL_TYPE(_val)) {
 			case DB_STRING:
 				if ( (!VAL_NULL(_val)) && VAL_FREE(_val)) {
-					LM_DBG("free VAL_STRING[%d] '%s' at %p\n", col, (char *)VAL_STRING(_val),
+					LM_DBG("free VAL_STRING[%d] '%s' at %p\n", col,
+							(char *)VAL_STRING(_val),
 							(char *)VAL_STRING(_val));
 					pkg_free((char *)VAL_STRING(_val));
 					VAL_STRING(_val) = NULL;
@@ -70,7 +71,8 @@ inline int db_free_row(db_row_t* _r)
 				break;
 			case DB_STR:
 				if ( (!VAL_NULL(_val)) && VAL_FREE(_val)) {
-					LM_DBG("free VAL_STR[%d] '%.*s' at %p\n", col, VAL_STR(_val).len,
+					LM_DBG("free VAL_STR[%d] '%.*s' at %p\n", col,
+							VAL_STR(_val).len,
 							VAL_STR(_val).s, VAL_STR(_val).s);
 					pkg_free(VAL_STR(_val).s);
 					VAL_STR(_val).s = NULL;