diff options
author | holyfoot@deer.(none) <> | 2006-06-01 17:06:42 +0500 |
---|---|---|
committer | holyfoot@deer.(none) <> | 2006-06-01 17:06:42 +0500 |
commit | bc35c50063a28afeb6c70c22607a76088a1f10cb (patch) | |
tree | d38087a9ddc2cb5e7182d44fada846bcf265fc41 /sql-common | |
parent | cb4c6a0dede7873aa151042b5f0aff9f545a5a89 (diff) | |
download | mariadb-git-bc35c50063a28afeb6c70c22607a76088a1f10cb.tar.gz |
bug #16017 (memory leaks in embedded server)
There actually was 3 different problems -
hash_user_connections wasn't cleaned
one strdupped database name wasn't freed
and stmt->mem_root wasn't cleaned as it was
replased with mysql->field_alloc for result
For the last one - i made the library using stmt's
fields to store result if it's the case.
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 3a598832253..ce49048ce79 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -648,7 +648,8 @@ void free_rows(MYSQL_DATA *cur) my_bool cli_advanced_command(MYSQL *mysql, enum enum_server_command command, const char *header, ulong header_length, - const char *arg, ulong arg_length, my_bool skip_check) + const char *arg, ulong arg_length, my_bool skip_check, + MYSQL_STMT *stmt __attribute__((unused))) { NET *net= &mysql->net; my_bool result= 1; |