Changeset 773 for vanHelsing/trunk/clib/clibbac.cxx
- Timestamp:
- Jul 3, 2009, 5:19:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/clib/clibbac.cxx
r772 r773 16 16 retlen = strlen(binstr) * 2 + 2; 17 17 18 // TODO replace malloc by python mem handler 19 retbuf = (char *) malloc(retlen); 18 retbuf = (char *) PyMem_Malloc(retlen); 20 19 if (retbuf == NULL) 21 20 return NULL; … … 25 24 26 25 result = Py_BuildValue("s", retbuf); 27 free(retbuf);26 PyMem_Free(retbuf); 28 27 29 28 return result;
Note:
See TracChangeset
for help on using the changeset viewer.