diff options
| author | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-10-04 15:42:16 +0300 |
|---|---|---|
| committer | Georgi Kodinov <Georgi.Kodinov@Oracle.com> | 2010-10-04 15:42:16 +0300 |
| commit | dd2e3db48fce43f6249e1c23b3cf0f5057b41d4e (patch) | |
| tree | 0b41fbab5c8e486500b5c53bbe818e62f6f583f2 /sql/sql_plugin.cc | |
| parent | 99039957feba6543c7d52b6dcfc5b9f349ee0047 (diff) | |
| parent | 774a5778d5db1062c26bd55d02a09c5d98a74525 (diff) | |
| download | mariadb-git-dd2e3db48fce43f6249e1c23b3cf0f5057b41d4e.tar.gz | |
merge
Diffstat (limited to 'sql/sql_plugin.cc')
| -rw-r--r-- | sql/sql_plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index 05ff973cba0..f88282487d9 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -523,7 +523,7 @@ static st_plugin_dl *plugin_dl_add(const LEX_STRING *dl, int report) /* no op */; cur= (struct st_mysql_plugin*) - my_malloc(i*sizeof(struct st_mysql_plugin), MYF(MY_ZEROFILL|MY_WME)); + my_malloc((i+1)*sizeof(struct st_mysql_plugin), MYF(MY_ZEROFILL|MY_WME)); if (!cur) { free_plugin_mem(&plugin_dl); |
