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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3de8784b
Commit
3de8784b
authored
Jul 26, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
safemalloc always resets the free'd memory, not only when PEDANTIC_SAFEMALLOC
parent
02614a02
Changes
2
Show 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 @
3de8784b
...
@@ -38,7 +38,7 @@ class Field
...
@@ -38,7 +38,7 @@ class Field
public:
public:
static
void
*
operator
new
(
size_t
size
)
{
return
(
void
*
)
sql_alloc
((
uint
)
size
);
}
static
void
*
operator
new
(
size_t
size
)
{
return
(
void
*
)
sql_alloc
((
uint
)
size
);
}
static
void
operator
delete
(
void
*
ptr_arg
,
size_t
size
)
{
static
void
operator
delete
(
void
*
ptr_arg
,
size_t
size
)
{
#ifdef
PEDANTIC_
SAFEMALLOC
#ifdef SAFEMALLOC
bfill
(
ptr_arg
,
size
,
0x8F
);
bfill
(
ptr_arg
,
size
,
0x8F
);
#endif
#endif
}
}
...
...
sql/sql_list.h
View file @
3de8784b
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
#pragma interface
/* gcc class implementation */
#pragma interface
/* gcc class implementation */
#endif
#endif
/* mysql standard class memoryallocator */
/* mysql standard class memory
allocator */
#ifdef
PEDANTIC_
SAFEMALLOC
#ifdef SAFEMALLOC
#define TRASH(XX,YY) bfill((XX), (YY), 0x8F)
#define TRASH(XX,YY) bfill((XX), (YY), 0x8F)
#else
#else
#define TRASH(XX,YY)
/* no-op */
#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