From: Thomas Heller Date: Fri, 5 May 2006 18:42:14 +0000 (+0000) Subject: Export the 'free' standard C function for use in the test suite. X-Git-Tag: v2.5b1~703 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21a929f5ab6dd52b880e49272a50de5ee507137d;p=python Export the 'free' standard C function for use in the test suite. --- diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c index ad3b047f6b..2696b9b691 100644 --- a/Modules/_ctypes/_ctypes_test.c +++ b/Modules/_ctypes/_ctypes_test.c @@ -96,6 +96,11 @@ EXPORT(char *) my_strdup(char *src) return dst; } +EXPORT(void) free(void *ptr) +{ + free(ptr); +} + #ifdef HAVE_WCHAR_H EXPORT(wchar_t *) my_wcsdup(wchar_t *src) {