Browse Source

- dispose driver-specific driver properly on error

Jan Janak 18 years ago
parent
commit
ae322c06db
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/db_mysql/my_cmd.c

+ 1 - 0
modules/db_mysql/my_cmd.c

@@ -1078,6 +1078,7 @@ int my_cmd(db_cmd_t* cmd)
 
 
  error:
  error:
 	if (res) {
 	if (res) {
+		DB_SET_PAYLOAD(cmd, NULL);
 		db_drv_free(&res->gen);
 		db_drv_free(&res->gen);
 		if (res->query.s) pkg_free(res->query.s);
 		if (res->query.s) pkg_free(res->query.s);
 		pkg_free(res);
 		pkg_free(res);