[Bf-blender-cvs] [cbde565] master: bmesh py api: face_split_edgenet missed NULL check
Campbell Barton
noreply at git.blender.org
Mon Jul 21 09:03:10 CEST 2014
Commit: cbde56572f9848b0bca34ae5ce3743e446d750d5
Author: Campbell Barton
Date: Mon Jul 21 12:42:00 2014 +1000
Branches: master
https://developer.blender.org/rBcbde56572f9848b0bca34ae5ce3743e446d750d5
bmesh py api: face_split_edgenet missed NULL check
===================================================================
M source/blender/python/bmesh/bmesh_py_utils.c
===================================================================
diff --git a/source/blender/python/bmesh/bmesh_py_utils.c b/source/blender/python/bmesh/bmesh_py_utils.c
index 3c412cf..88e369a 100644
--- a/source/blender/python/bmesh/bmesh_py_utils.c
+++ b/source/blender/python/bmesh/bmesh_py_utils.c
@@ -595,7 +595,9 @@ static PyObject *bpy_bm_utils_face_split_edgenet(PyObject *UNUSED(self), PyObjec
if (ok) {
PyObject *ret = BPy_BMFace_Array_As_Tuple(bm, face_arr, face_arr_len);
- MEM_freeN(face_arr);
+ if (face_arr) {
+ MEM_freeN(face_arr);
+ }
return ret;
}
else {
More information about the Bf-blender-cvs
mailing list