diff options
author | pem@mysql.com <> | 2004-02-10 18:44:02 +0100 |
---|---|---|
committer | pem@mysql.com <> | 2004-02-10 18:44:02 +0100 |
commit | c8585f3283816dea04c28774ef87537521b6aa80 (patch) | |
tree | f04786f8a211a4c03eab547b7332792201289ac1 /sql/sql_list.h | |
parent | 5344528b0034f0254d4c72b203c5888f1c8526c2 (diff) | |
parent | 9de20058342fa7387071a3d70291a26db2e210c0 (diff) | |
download | mariadb-git-c8585f3283816dea04c28774ef87537521b6aa80.tar.gz |
Merge 4.1 into 5.0.
Diffstat (limited to 'sql/sql_list.h')
-rw-r--r-- | sql/sql_list.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sql/sql_list.h b/sql/sql_list.h index 592173c36da..8faa7109174 100644 --- a/sql/sql_list.h +++ b/sql/sql_list.h @@ -21,6 +21,12 @@ /* mysql standard class memoryallocator */ +#ifdef PEDANTIC_SAFEMALLOC +#define TRASH(XX,YY) bfill((XX), (YY), 0x8F) +#else +#define TRASH(XX,YY) /* no-op */ +#endif + class Sql_alloc { public: @@ -34,8 +40,8 @@ public: } static void *operator new(size_t size, MEM_ROOT *mem_root) { return (void*) alloc_root(mem_root, (uint) size); } - static void operator delete(void *ptr, size_t size) {} /*lint -e715 */ - static void operator delete[](void *ptr, size_t size) {} + static void operator delete(void *ptr, size_t size) { TRASH(ptr, size); } + static void operator delete[](void *ptr, size_t size) { TRASH(ptr, size); } #ifdef HAVE_purify bool dummy; inline Sql_alloc() :dummy(0) {} |