1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

memory leak fixed

This commit is contained in:
unknown
2001-11-24 17:45:22 +01:00
parent 8ff92c30b5
commit 056c71f1ae
2 changed files with 2 additions and 1 deletions

View File

@ -109,6 +109,6 @@ update t1 set b=4 where a=1 order by b desc limit 1;
select * from t1; select * from t1;
a b a b
1 4 1 4
1 4
1 2 1 2
1 4
drop table t1; drop table t1;

View File

@ -335,5 +335,6 @@ int mysql_update(THD *thd,
DBUG_PRINT("info",("%d records updated",updated)); DBUG_PRINT("info",("%d records updated",updated));
} }
thd->count_cuted_fields=0; /* calc cuted fields */ thd->count_cuted_fields=0; /* calc cuted fields */
free_io_cache(table);
DBUG_RETURN(0); DBUG_RETURN(0);
} }