Selaa lähdekoodia

- fix bug in cr_user_rewrite_uri: the load_user_carrier function fails
to free a DB result when the query returned NULL, this was introduced
in a bugfix, rev4249


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

Henning Westerholt 17 vuotta sitten
vanhempi
commit
9bf7f78e8b
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      modules/carrierroute/cr_db.c

+ 1 - 0
modules/carrierroute/cr_db.c

@@ -123,6 +123,7 @@ int load_user_carrier(str * user, str * domain) {
 	}
 
 	if (VAL_NULL(ROW_VALUES(RES_ROWS(res)))) {
+		carrierroute_dbf.free_result(carrierroute_dbh, res);
 		return 0;
 	}