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
ffedc6b8
Commit
ffedc6b8
authored
Jul 03, 2013
by
Olivier Bertrand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Makes memory check conditionally
modified: storage/connect/libdoc.cpp
parent
59b3833c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
storage/connect/libdoc.cpp
storage/connect/libdoc.cpp
+13
-13
No files found.
storage/connect/libdoc.cpp
View file @
ffedc6b8
...
...
@@ -30,7 +30,7 @@ extern char version[];
extern
int
trace
;
}
// "C"
#if defined(
_DEBUG
)
#if defined(
MEMORY_TRACE
)
static
xmlFreeFunc
Free
;
static
xmlMallocFunc
Malloc
;
static
xmlMallocFunc
MallocA
;
...
...
@@ -75,7 +75,7 @@ char *xmlMyStrdup(const char *str)
htrc
(
"Duplicating to %p from %p %s
\n
"
,
p
,
str
,
str
);
return
p
;
}
// end of xmlMyStrdup
#endif //
_DEBUG
#endif //
MEMORY_TRACE
/******************************************************************/
/* Return a LIBXMLDOC as a XMLDOC. */
...
...
@@ -91,7 +91,7 @@ PXDOC GetLibxmlDoc(PGLOBAL g, char *nsl, char *nsdf,
/******************************************************************/
void
XmlInitParserLib
(
void
)
{
#if defined(
_DEBUG
)
#if defined(
MEMORY_TRACE
)
int
rc
=
xmlGcMemGet
(
&
Free
,
&
Malloc
,
&
MallocA
,
&
Realloc
,
&
Strdup
);
if
(
!
rc
)
...
...
@@ -101,7 +101,7 @@ if (!rc)
xmlMyRealloc
,
xmlMyStrdup
);
#endif //
_DEBUG
#endif //
MEMORY_TRACE
xmlInitParser
();
}
// end of XmlInitParserLib
...
...
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