Author: Armin Rigo <ar...@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)); _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit