Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-07-21 06:42:00 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-07-21 06:42:00 +0400
commitcbde56572f9848b0bca34ae5ce3743e446d750d5 (patch)
tree4e5bb63677e49dc1adf2bfa884faad3e6d643a02 /source/blender/python/bmesh/bmesh_py_utils.c
parent13a8f650df5eeea7974dad8db04f52e9d30d9026 (diff)
bmesh py api: face_split_edgenet missed NULL check
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_utils.c')
-rw-r--r--source/blender/python/bmesh/bmesh_py_utils.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_utils.c b/source/blender/python/bmesh/bmesh_py_utils.c
index 3c412cf2a08..88e369af8bb 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 {