mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-09 03:41:46 +03:00
patch from Charles Bozeman fixing a memory leak in
* libexslt/date.c: patch from Charles Bozeman fixing a memory leak in exsltDateDurationFunction pointed out by Bernard Brinkhus * python/tests/exslt.py: trouble with mem debug in that specific test... Daniel
This commit is contained in:
@ -4,7 +4,7 @@ import libxml2
|
||||
import libxslt
|
||||
|
||||
# Memory debug specific
|
||||
libxml2.debugMemory(1)
|
||||
#libxml2.debugMemory(1)
|
||||
|
||||
|
||||
styledoc = libxml2.parseDoc(
|
||||
@ -49,9 +49,10 @@ if stringval != expect:
|
||||
sys.exit(255)
|
||||
|
||||
# Memory debug specific
|
||||
libxslt.cleanup()
|
||||
if libxml2.debugMemory(1) == 0:
|
||||
print "OK"
|
||||
else:
|
||||
print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||
libxml2.dumpMemory()
|
||||
#libxslt.cleanup()
|
||||
#if libxml2.debugMemory(1) == 0:
|
||||
# print "OK"
|
||||
#else:
|
||||
# print "Memory leak %d bytes" % (libxml2.debugMemory(1))
|
||||
# libxml2.dumpMemory()
|
||||
print "OK"
|
||||
|
Reference in New Issue
Block a user