Changeset 773 for vanHelsing/trunk
- Timestamp:
- Jul 3, 2009, 5:19:08 PM (15 years ago)
- Location:
- vanHelsing/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/bconsole.py
r772 r773 44 44 } 45 45 46 #import clibbac46 import clibbac 47 47 48 48 class ConsoleError(IOError): -
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; -
vanHelsing/trunk/setup.py
r772 r773 10 10 include_dirs = ['bacula_repo/src/'], 11 11 libraries = ['crypto', 'ssl', 'bac'], 12 library_dirs = ['build/lib/'], 13 runtime_library_dirs = ['build/lib/'], 12 14 ) 13 15
Note:
See TracChangeset
for help on using the changeset viewer.