[pypy-commit] cffi default: Found a slow leak on Win32. Don't know how to fix it :-(
arigo
noreply at buildbot.pypy.org
Tue Jul 31 23:14:50 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r750:ee71817b421d
Date: 2012-07-31 23:14 +0200
http://bitbucket.org/cffi/cffi/changeset/ee71817b421d/
Log: Found a slow leak on Win32. Don't know how to fix it :-(
diff --git a/c/misc_win32.h b/c/misc_win32.h
--- a/c/misc_win32.h
+++ b/c/misc_win32.h
@@ -21,7 +21,8 @@
LPVOID p = TlsGetValue(cffi_tls_index);
if (p == NULL) {
- p = PyMem_Malloc(sizeof(struct cffi_errno_s));
+ /* XXX this malloc() leaks */
+ p = malloc(sizeof(struct cffi_errno_s));
if (p == NULL)
return NULL;
memset(p, 0, sizeof(struct cffi_errno_s));
More information about the pypy-commit
mailing list