[New-bugs-announce] [issue40425] Refleak in CDataObject
Cubi
report at bugs.python.org
Tue Apr 28 13:38:18 EDT 2020
New submission from Cubi <dennis-danne at protonmail.com>:
String buffers are not freed when pointers to them (created via ctypes.cast) are deleted, even though those pointers hold references to the string buffer (in tagCDataObject.b_objects, I think). Code examples can be found on StackOverflow.com [1]. Thanks to Mark Tolonen's answer on that StackOverflow post we know that it is a refcount problem.
Tested in
Python v3.7.4 x64 on Windows 10 x64, and in
Python v3.8.2 x64 on ArchLinux x64 (5.6.7-arch1-1)
[1] https://stackoverflow.com/q/61479041
----------
components: ctypes
messages: 367549
nosy: cubinator
priority: normal
severity: normal
status: open
title: Refleak in CDataObject
type: resource usage
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40425>
_______________________________________
More information about the New-bugs-announce
mailing list