This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cubinator
Recipients cubinator
Date 2020-04-28.17:38:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588095498.31.0.363636876654.issue40425@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-04-28 17:38:18cubinatorsetrecipients: + cubinator
2020-04-28 17:38:18cubinatorsetmessageid: <1588095498.31.0.363636876654.issue40425@roundup.psfhosted.org>
2020-04-28 17:38:18cubinatorlinkissue40425 messages
2020-04-28 17:38:17cubinatorcreate