]> granicus.if.org Git - python/commitdiff
Export the 'free' standard C function for use in the test suite.
authorThomas Heller <theller@ctypes.org>
Fri, 5 May 2006 18:42:14 +0000 (18:42 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 5 May 2006 18:42:14 +0000 (18:42 +0000)
Modules/_ctypes/_ctypes_test.c

index ad3b047f6b8a7f9585474897863d249fed75f8be..2696b9b691ea8c2a5c4cf5e6dc29ce8285013267 100644 (file)
@@ -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)
 {