Merge remote-tracking branch 'jun/v0.20.3-vs2008'

This commit is contained in:
J. David Ibáñez
2014-04-28 17:03:58 +02:00

View File

@@ -41,10 +41,11 @@ get_search_path(long level)
size_t len = 64; size_t len = 64;
PyObject *py_path; PyObject *py_path;
int error; int error;
char *tmp;
do { do {
len *= 2; len *= 2;
char *tmp = realloc(buf, len); tmp = realloc(buf, len);
if (!tmp) { if (!tmp) {
free(buf); free(buf);
PyErr_NoMemory(); PyErr_NoMemory();