mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
memory: Remove memory debugging
This is useless compared to sanitizers or valgrind and has a considerable performance impact if enabled accidentally.
This commit is contained in:
@@ -2944,15 +2944,6 @@ xmlShell(xmlDocPtr doc, char *filename, xmlShellReadlineFunc input,
|
||||
#endif /* LIBXML_OUTPUT_ENABLED */
|
||||
} else if (!strcmp(command, "grep")) {
|
||||
xmlShellGrep(ctxt, arg, ctxt->node, NULL);
|
||||
} else if (!strcmp(command, "free")) {
|
||||
if (arg[0] == 0) {
|
||||
xmlMemShow(ctxt->output, 0);
|
||||
} else {
|
||||
int len = 0;
|
||||
|
||||
sscanf(arg, "%d", &len);
|
||||
xmlMemShow(ctxt->output, len);
|
||||
}
|
||||
} else if (!strcmp(command, "pwd")) {
|
||||
char dir[500];
|
||||
|
||||
|
Reference in New Issue
Block a user