mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix several bugs causing memory leak or invalid access detected
by Valgrind. This concerns the XML libxml2 support. modified: storage/connect/domdoc.cpp storage/connect/domdoc.h storage/connect/ha_connect.cc storage/connect/libdoc.cpp storage/connect/plgdbsem.h storage/connect/plgxml.h storage/connect/tabxml.cpp storage/connect/tabxml.h
This commit is contained in:
@@ -592,6 +592,18 @@ PXNODE DOMNODELIST::GetItem(PGLOBAL g, int n, PXNODE np)
|
||||
|
||||
} // end of GetItem
|
||||
|
||||
/******************************************************************/
|
||||
/* Reset the pointer on the deleted item. */
|
||||
/******************************************************************/
|
||||
bool DOMNODELIST::DropItem(PGLOBAL g, int n)
|
||||
{
|
||||
if (Listp == NULL || Listp->length <= n)
|
||||
return true;
|
||||
|
||||
//Listp->item[n] = NULL; La propri<72>t<EFBFBD> n'a pas de m<>thode 'set'
|
||||
return false;
|
||||
} // end of DeleteItem
|
||||
|
||||
/* ----------------------- class DOMATTR ------------------------ */
|
||||
|
||||
/******************************************************************/
|
||||
|
Reference in New Issue
Block a user