Fix the issue reported by Jdavid 'Here you are freeing the path and then you use it.'
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user