mariadb/libmysqld
unknown eadcf20081 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.


include/mysql.h:
  statement pointer added to the advanced_command to be checked in
  embedded server
include/sql_common.h:
  stmt added to the cli_advanced_command interface
libmysql/libmysql.c:
  stmt pointer now sent to advanced_command
libmysqld/embedded_priv.h:
  it's enough to send database name to check_embedded_connection
libmysqld/lib_sql.cc:
  Now we store result directly in the MYSQL_STMT structure to
  avoid extra copying
libmysqld/libmysqld.c:
  it's enough to only send database pointer to check_embedded_connection
sql-common/client.c:
  stmt fake attribute added to cli_advanced_command
sql/sql_parse.cc:
  hash_user_connections isn't used if no access checks compiled
2006-06-01 17:06:42 +05:00
..
examples Makefile.am, configure.in: 2005-09-24 15:51:45 +02:00
copyright Added all changes from old 4.0 version: 2001-04-11 13:04:03 +02:00
emb_qcache.cc Fix crash in embedded server due to incorrect storage of results 2005-03-31 19:17:45 -08:00
emb_qcache.h Fix crash in embedded server due to incorrect storage of results 2005-03-31 19:17:45 -08:00
embedded_priv.h bug #16017 (memory leaks in embedded server) 2006-06-01 17:06:42 +05:00
ha_blackhole.cc Merge mysql.com:/home/mydev/mysql-4.1 2005-12-27 10:36:19 +01:00
lib_sql.cc bug #16017 (memory leaks in embedded server) 2006-06-01 17:06:42 +05:00
libmysqld.c bug #16017 (memory leaks in embedded server) 2006-06-01 17:06:42 +05:00
libmysqld.def libmysqld.def, libmysql.def: 2005-01-12 21:04:31 -06:00
libmysqld.rc Adding binary version information for debug/release version of libmysqld.dll 2004-08-25 02:04:45 -03:00
Makefile.am Makefile.am, configure.in: 2005-09-24 15:51:45 +02:00
resource.h Adding binary version information for debug/release version of libmysqld.dll 2004-08-25 02:04:45 -03:00