Fix the issue reported by Jdavid 'Here you are freeing the path and then you use it.'

This commit is contained in:
delanne
2012-11-12 10:25:55 +01:00
parent 8216dad986
commit b84e8dc9a0

View File

@@ -233,8 +233,8 @@ Index_contains(Index *self, PyObject *value)
return 0; return 0;
} }
if (idx < 0) { if (idx < 0) {
free(path);
Error_set_str(idx, path); Error_set_str(idx, path);
free(path);
return -1; return -1;
} }
free(path); free(path);