Skip to content

Commit cba3124

Browse files
committed
Fixed a segfault on PyPy
1 parent 1d36013 commit cba3124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sass.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ PySass_compile(PyObject *self, PyObject *args, PyObject *kwds)
244244
}
245245

246246
finalize:
247-
if (PySequence_Check(include_paths)) {
247+
if (include_paths != NULL && PySequence_Check(include_paths)) {
248248
free(include_paths_v);
249249
}
250250
return result;

0 commit comments

Comments
 (0)