mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix memory leak for the JSON table type
(and continue BSON implementatio) modified: storage/connect/bson.cpp modified: storage/connect/bson.h modified: storage/connect/bsonudf.cpp modified: storage/connect/connect.cc modified: storage/connect/global.h modified: storage/connect/ha_connect.cc modified: storage/connect/jsonudf.cpp modified: storage/connect/mycat.cc modified: storage/connect/plgdbsem.h modified: storage/connect/plugutil.cpp modified: storage/connect/tabjson.cpp modified: storage/connect/tabjson.h modified: storage/connect/user_connect.cc - Desesperatly trying to fix xml.test failure modified: storage/connect/mysql-test/connect/r/xml.result
This commit is contained in:
@@ -184,7 +184,7 @@ PGLOBAL PlugInit(LPCSTR Language, size_t worksize)
|
||||
/***********************************************************************/
|
||||
/* PlugExit: Terminate Plug operations. */
|
||||
/***********************************************************************/
|
||||
int PlugExit(PGLOBAL g)
|
||||
PGLOBAL PlugExit(PGLOBAL g)
|
||||
{
|
||||
if (g) {
|
||||
PDBUSER dup = PlgGetUser(g);
|
||||
@@ -196,7 +196,7 @@ int PlugExit(PGLOBAL g)
|
||||
delete g;
|
||||
} // endif g
|
||||
|
||||
return 0;
|
||||
return NULL;
|
||||
} // end of PlugExit
|
||||
|
||||
/***********************************************************************/
|
||||
@@ -483,9 +483,10 @@ bool AllocSarea(PGLOBAL g, size_t size)
|
||||
#else
|
||||
if (trace(8)) {
|
||||
#endif
|
||||
if (g->Sarea)
|
||||
if (g->Sarea) {
|
||||
htrc("Work area of %zd allocated at %p\n", size, g->Sarea);
|
||||
else
|
||||
PlugSubSet(g->Sarea, size);
|
||||
} else
|
||||
htrc("SareaAlloc: %s\n", g->Message);
|
||||
|
||||
} // endif trace
|
||||
|
Reference in New Issue
Block a user