Mercurial > cpython-lru_cache-weakref
diff Python/mysnprintf.c @ 21563:fcb649b1004d 2.2
This commit was manufactured by cvs2svn to create branch
'release22-maint'.
| author | cvs2svn <tools@python.org> |
|---|---|
| date | Fri, 28 Dec 2001 04:27:46 +0000 |
| parents | 87fa6e9bd77e |
| children | 2925b568aacc a8cc8e6f0c1a |
line wrap: on
line diff
--- a/Python/mysnprintf.c Fri Dec 21 04:39:11 2001 +0000 +++ b/Python/mysnprintf.c Fri Dec 28 04:27:46 2001 +0000 @@ -65,7 +65,7 @@ len = vsnprintf(str, size, format, va); #else /* Emulate it. */ - buffer = PyMem_Malloc(size + 512); + buffer = PyMem_MALLOC(size + 512); if (buffer == NULL) { len = -666; goto Done; @@ -85,7 +85,7 @@ memcpy(str, buffer, to_copy); str[to_copy] = '\0'; } - PyMem_Free(buffer); + PyMem_FREE(buffer); Done: #endif str[size-1] = '\0';
