Skip to content

Commit 886bf4e

Browse files
committed
Stop calling xmlMemoryDump
This was used to check for memory leaks but could potentially create a .memdump file. These days, there are better ways to check for memory leaks.
1 parent fc119e3 commit 886bf4e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1
-109
lines changed

Makefile.am

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ endif
233233
tests: $(OLD_TESTS)
234234

235235
Scripttests : xmllint$(EXEEXT)
236-
@(echo > .memdump)
237236
@echo "## Scripts regression tests"
238237
@echo "## Some of the base computations may be different if srcdir != ."
239238
-@(for i in $(srcdir)/test/scripts/*.script ; do \
@@ -243,18 +242,15 @@ Scripttests : xmllint$(EXEEXT)
243242
if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \
244243
echo New test file $$name ; \
245244
$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name 2> $(srcdir)/result/scripts/$$name.err ; \
246-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
247245
else \
248246
log=`$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name 2> result.$$name.err ; \
249-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
250247
diff $(srcdir)/result/scripts/$$name result.$$name ; \
251248
diff $(srcdir)/result/scripts/$$name.err result.$$name.err` ; \
252249
if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
253250
rm result.$$name result.$$name.err ; \
254251
fi ; fi ; done)
255252

256253
Catatests : xmlcatalog$(EXEEXT)
257-
@(echo > .memdump)
258254
@echo "## Catalog regression tests"
259255
-@(for i in $(srcdir)/test/catalogs/*.script ; do \
260256
name=`basename $$i .script`; \
@@ -263,10 +259,8 @@ Catatests : xmlcatalog$(EXEEXT)
263259
if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
264260
echo New test file $$name ; \
265261
$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > $(srcdir)/result/catalogs/$$name ; \
266-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
267262
else \
268263
log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > result.$$name ; \
269-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
270264
diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
271265
if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
272266
rm result.$$name ; \
@@ -278,33 +272,22 @@ Catatests : xmlcatalog$(EXEEXT)
278272
if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
279273
echo New test file $$name ; \
280274
$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \
281-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
282275
else \
283276
log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \
284-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
285277
diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
286278
if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
287279
rm result.$$name ; \
288280
fi ; fi ; done)
289281
@echo "## Add and del operations on XML Catalogs"
290282
-@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \
291-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
292283
$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid $(srcdir)/result/catalogs/mycatalog; \
293-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
294284
$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 $(srcdir)/result/catalogs/mycatalog; \
295-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
296285
$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 $(srcdir)/result/catalogs/mycatalog; \
297-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
298286
diff result/catalogs/mycatalog.full $(srcdir)/result/catalogs/mycatalog; \
299-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
300287
$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \
301-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
302288
$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \
303-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
304289
$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \
305-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
306290
diff result/catalogs/mycatalog.empty $(srcdir)/result/catalogs/mycatalog; \
307-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
308291
rm -f $(srcdir)/result/catalogs/mycatalog)
309292

310293
dba100000.xml: dbgenattr.pl
@@ -319,30 +302,21 @@ Timingtests: xmllint$(EXEEXT) dba100000.xml
319302
@echo "## 3/ repeated DOM parsing"
320303
@echo "## 4/ repeated DOM validation"
321304
-@($(top_builddir)/xmllint --stream --timing dba100000.xml; \
322-
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
323305
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
324-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
325306
exit 0)
326307
-@($(top_builddir)/xmllint --stream --timing --memory dba100000.xml; \
327-
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
328308
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
329-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
330309
exit 0)
331310
-@($(top_builddir)/xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
332-
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
333311
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
334-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
335312
exit 0)
336313

337314
VTimingtests: xmllint$(EXEEXT)
338315
-@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
339-
MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
340316
if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
341-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
342317
exit 0)
343318

344319
Schematrontests: xmllint$(EXEEXT)
345-
@(echo > .memdump)
346320
@echo "## Schematron regression tests"
347321
-@(for i in $(srcdir)/test/schematron/*.sct ; do \
348322
name=`basename $$i | sed 's+\.sct++'`; \
@@ -355,11 +329,9 @@ Schematrontests: xmllint$(EXEEXT)
355329
$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
356330
> $(srcdir)/result/schematron/"$$name"_"$$xno" \
357331
2> $(srcdir)/result/schematron/"$$name"_"$$xno".err; \
358-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
359332
else \
360333
log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
361334
> res.$$name 2> err.$$name;\
362-
grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
363335
diff $(srcdir)/result/schematron/"$$name"_"$$xno" \
364336
res.$$name;\
365337
diff $(srcdir)/result/schematron/"$$name"_"$$xno".err \

check-relaxng-test-suite.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,3 @@ def handle_testSuite(node, level = 0):
395395
print("OK")
396396
else:
397397
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
398-
libxml2.dumpMemory()

check-relaxng-test-suite2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,4 +419,3 @@ def callback(ctx, str):
419419
print("OK")
420420
else:
421421
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
422-
libxml2.dumpMemory()

check-xsddata-test-suite.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,4 +421,3 @@ def callback(ctx, str):
421421
print("OK")
422422
else:
423423
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
424-
libxml2.dumpMemory()

nanoftp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2083,7 +2083,6 @@ int main(int argc, char **argv) {
20832083

20842084
}
20852085
xmlNanoFTPClose(ctxt);
2086-
xmlMemoryDump();
20872086
exit(0);
20882087
}
20892088
#endif /* STANDALONE */

nanohttp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,7 +1912,6 @@ int main(int argc, char **argv) {
19121912
"\tusage %s [ URL [ filename ] ]\n", argv[0]);
19131913
}
19141914
xmlNanoHTTPCleanup();
1915-
xmlMemoryDump();
19161915
return(0);
19171916
}
19181917
#endif /* STANDALONE */

python/tests/attribs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@
3131
print("OK")
3232
else:
3333
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
34-
libxml2.dumpMemory()

python/tests/build.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@
5656
print("OK")
5757
else:
5858
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
59-
libxml2.dumpMemory()

python/tests/compareNodes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@
4747
print("OK")
4848
else:
4949
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
50-
libxml2.dumpMemory()

python/tests/ctxterror.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ def callback(arg,msg,severity,reserved):
5353
print("OK")
5454
else:
5555
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
56-
libxml2.dumpMemory()

python/tests/cutnpaste.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,3 @@
4545
print("OK")
4646
else:
4747
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
48-
libxml2.dumpMemory()

python/tests/dtdvalid.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@
2828
print("OK")
2929
else:
3030
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
31-
libxml2.dumpMemory()
3231

python/tests/error.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@ def callback(ctx, str):
4848
print("OK")
4949
else:
5050
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
51-
libxml2.dumpMemory()

python/tests/inbuf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@
2626
print("OK")
2727
else:
2828
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
29-
libxml2.dumpMemory()
3029

python/tests/indexes.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,3 @@ def characters(self, data):
110110
print("OK")
111111
else:
112112
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
113-
libxml2.dumpMemory()

python/tests/nsdel.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,3 @@ def checkNamespaceDefs(node, count):
5959
print("OK")
6060
else:
6161
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
62-
libxml2.dumpMemory()

python/tests/outbuf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,3 @@ def testSaveIntoOutputBuffer():
107107
print("OK")
108108
else:
109109
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
110-
libxml2.dumpMemory()

python/tests/push.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@
3232
print("OK")
3333
else:
3434
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
35-
libxml2.dumpMemory()

python/tests/pushSAX.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,3 @@ def fatalError(self, msg):
6161
print("OK")
6262
else:
6363
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
64-
libxml2.dumpMemory()

python/tests/pushSAXhtml.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,3 @@ def fatalError(self, msg):
6262
print("OK")
6363
else:
6464
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
65-
libxml2.dumpMemory()

python/tests/reader.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,4 +443,3 @@ def tst_reader(s):
443443
print("OK")
444444
else:
445445
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
446-
libxml2.dumpMemory()

python/tests/reader2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,4 +334,3 @@ def myResolver(URL, ID, ctxt):
334334
print("OK")
335335
else:
336336
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
337-
libxml2.dumpMemory()

python/tests/reader3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,3 @@ def myResolver(URL, ID, ctxt):
157157
print("OK")
158158
else:
159159
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
160-
libxml2.dumpMemory()

python/tests/reader4.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,3 @@ def tst_reader(s):
4747
print("OK")
4848
else:
4949
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
50-
libxml2.dumpMemory()

python/tests/reader5.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@
4646
print("OK")
4747
else:
4848
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
49-
libxml2.dumpMemory()

python/tests/reader6.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,3 @@ def callback(ctx, str):
125125
print("OK")
126126
else:
127127
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
128-
libxml2.dumpMemory()

python/tests/reader7.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,3 @@ def processNode(reader):
9898
print("OK")
9999
else:
100100
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
101-
libxml2.dumpMemory()

python/tests/reader8.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@
3333
print("OK")
3434
else:
3535
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
36-
libxml2.dumpMemory()

python/tests/readererr.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,3 @@ def myErrorHandler(arg,msg,severity,locator):
5353
print("OK")
5454
else:
5555
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
56-
libxml2.dumpMemory()

python/tests/readernext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,3 @@
8383
print("OK")
8484
else:
8585
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
86-
libxml2.dumpMemory()

python/tests/regexp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@
2929
print("OK")
3030
else:
3131
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
32-
libxml2.dumpMemory()

python/tests/relaxng.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@
4444
print("OK")
4545
else:
4646
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
47-
libxml2.dumpMemory()
4847

python/tests/resolver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@ def myResolver(URL, ID, ctxt):
4040
print("OK")
4141
else:
4242
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
43-
libxml2.dumpMemory()
4443

python/tests/schema.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@
4848
print("OK")
4949
else:
5050
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
51-
libxml2.dumpMemory()
5251

python/tests/serialize.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,3 @@
147147
print("OK")
148148
else:
149149
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
150-
libxml2.dumpMemory()

python/tests/sync.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,3 @@ def fatalError(self, msg):
135135
print("OK")
136136
else:
137137
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
138-
libxml2.dumpMemory()

python/tests/thread2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,3 @@ def test(expectedLineNumbersDefault):
9696
print("OK")
9797
else:
9898
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
99-
libxml2.dumpMemory()

python/tests/tst.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@
2525
print("OK")
2626
else:
2727
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
28-
libxml2.dumpMemory()

python/tests/tstLastError.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ def setUp(self):
1515
def tearDown(self):
1616
libxml2.cleanupParser()
1717
if libxml2.debugMemory(1) != 0:
18-
libxml2.dumpMemory()
1918
self.fail("Memory leak %d bytes" % (libxml2.debugMemory(1),))
2019
else:
2120
print("OK")

python/tests/tstURI.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@
3838
print("OK")
3939
else:
4040
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
41-
libxml2.dumpMemory()

python/tests/tstmem.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ def error(msg, data):
3838
print("OK")
3939
else:
4040
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
41-
libxml2.dumpMemory()

python/tests/tstxpath.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,3 @@ def bar(ctxt, x):
6060
print("OK")
6161
else:
6262
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
63-
libxml2.dumpMemory()

python/tests/validDTD.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@ def handler(self, msg, data):
5555
print("OK")
5656
else:
5757
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
58-
libxml2.dumpMemory()
5958

python/tests/validRNG.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,4 @@ def handler(self, msg, data):
7272
print("OK")
7373
else:
7474
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
75-
libxml2.dumpMemory()
7675

python/tests/validSchemas.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,4 @@ def handler(self, msg, data):
7979
print("OK")
8080
else:
8181
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
82-
libxml2.dumpMemory()
8382

python/tests/validate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,3 @@ def noerr(ctx, str):
7979
print("OK")
8080
else:
8181
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
82-
libxml2.dumpMemory()

python/tests/walker.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,3 @@ def processNode(reader):
141141
print("OK")
142142
else:
143143
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
144-
libxml2.dumpMemory()

python/tests/xpath.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,3 @@
4848
print("OK")
4949
else:
5050
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
51-
libxml2.dumpMemory()

python/tests/xpathext.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ def bar(ctx, x):
4646
print("OK")
4747
else:
4848
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
49-
libxml2.dumpMemory()

python/tests/xpathleak.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,3 @@ def callback(ctx, str):
5151
print("OK")
5252
else:
5353
print("Memory leak", leakedbytes, "bytes")
54-
# drop file to .memdump file in cwd, but won't work if not compiled in
55-
libxml2.dumpMemory()

python/tests/xpathns.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@
2626
print("OK")
2727
else:
2828
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
29-
libxml2.dumpMemory()

python/tests/xpathret.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,3 @@ def foo(ctx, str):
5454
print("OK")
5555
else:
5656
print("Memory leak %d bytes" % (libxml2.debugMemory(1)))
57-
libxml2.dumpMemory()

0 commit comments

Comments
 (0)