New submission from STINNER Victor <victor.stin...@haypocalc.com>:

clearEntries() delete all nodes of the profiler tree, but 
currentProfilerContext keeps a reference to a tree node 
(currentProfilerContext->previous->header attribute).

The patch fixes clearEntries() to delete all references (destroy 
currentProfilerContext and set it to NULL).

----------
components: Extension Modules
files: _lsprof.patch
keywords: patch
messages: 96346
nosy: haypo
severity: normal
status: open
title: _lsprof (cProfile): Profiler.clear() keeps references to detroyed nodes
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file15543/_lsprof.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7494>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to