Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5c19e4f0
Commit
5c19e4f0
authored
Jul 26, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
safemalloc always resets the free'd memory, not only when PEDANTIC_SAFEMALLOC
parent
8da3aa06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
sql/field.h
sql/field.h
+1
-1
sql/sql_list.h
sql/sql_list.h
+2
-2
No files found.
sql/field.h
View file @
5c19e4f0
...
...
@@ -38,7 +38,7 @@ class Field
public:
static
void
*
operator
new
(
size_t
size
)
{
return
(
void
*
)
sql_alloc
((
uint
)
size
);
}
static
void
operator
delete
(
void
*
ptr_arg
,
size_t
size
)
{
#ifdef
PEDANTIC_
SAFEMALLOC
#ifdef SAFEMALLOC
bfill
(
ptr_arg
,
size
,
0x8F
);
#endif
}
...
...
sql/sql_list.h
View file @
5c19e4f0
...
...
@@ -19,9 +19,9 @@
#pragma interface
/* gcc class implementation */
#endif
/* mysql standard class memoryallocator */
/* mysql standard class memory
allocator */
#ifdef
PEDANTIC_
SAFEMALLOC
#ifdef SAFEMALLOC
#define TRASH(XX,YY) bfill((XX), (YY), 0x8F)
#else
#define TRASH(XX,YY)
/* no-op */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment