New submission from hhas:

CFStringRefObj_Convert leaks memory when passed a str. See attached diff 
file for patch.

----------
components: Macintosh
files: CFmodule.diff
messages: 55843
nosy: hhas
severity: normal
status: open
title: Carbon.CF memory leak
type: resource usage
versions: Python 2.5

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1154>
__________________________________
1830,1831c1830,1832
<               *p_itself = CFStringCreateWithCString((CFAllocatorRef)NULL, 
cStr, kCFStringEncodingASCII);
<               return 1;
---
>         *p_itself = CFStringCreateWithCString((CFAllocatorRef)NULL, cStr, 
> kCFStringEncodingASCII);
>         PyMem_Free(cStr);
>         return 1;
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to