summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserg@serg.mysql.com <>2001-11-24 17:45:22 +0100
committerserg@serg.mysql.com <>2001-11-24 17:45:22 +0100
commit79258183fd6f94736b09690c587575bb2aaaf1eb (patch)
tree0174d3f159a0445fe8bd7d288f1a87b63300495d
parent90933cc768809d568550f0a68bbbdecf68bae2bf (diff)
downloadmariadb-git-79258183fd6f94736b09690c587575bb2aaaf1eb.tar.gz
memory leak fixed
-rw-r--r--mysql-test/r/update.result2
-rw-r--r--sql/sql_update.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/r/update.result b/mysql-test/r/update.result
index 436f837ab68..ba5c1c6e28f 100644
--- a/mysql-test/r/update.result
+++ b/mysql-test/r/update.result
@@ -109,6 +109,6 @@ update t1 set b=4 where a=1 order by b desc limit 1;
select * from t1;
a b
1 4
-1 4
1 2
+1 4
drop table t1;
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 270f164bf80..3111268849f 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -335,5 +335,6 @@ int mysql_update(THD *thd,
DBUG_PRINT("info",("%d records updated",updated));
}
thd->count_cuted_fields=0; /* calc cuted fields */
+ free_io_cache(table);
DBUG_RETURN(0);
}