summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-02-27 09:55:37 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2020-02-27 09:55:37 +0900
commit62039e61992eadccf4d396e2bc5cba6624309fae (patch)
treeef9d4f24f8762488df5d2a6828e40847126f5054 /src
parent5e675938d5c665df011a80f42af282ca837355de (diff)
evas_model_load_ply: Prevent memory leak
Summary: If use ein_str_split, have to free the first element of the array and free the array. Test Plan: N/A Reviewers: Hermet, YOhoho, bu5hm4n, zmike Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11419
Diffstat (limited to 'src')
-rw-r--r--src/modules/evas/model_loaders/ply/evas_model_load_ply.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/evas/model_loaders/ply/evas_model_load_ply.c b/src/modules/evas/model_loaders/ply/evas_model_load_ply.c
index 51b3b419ab..20a9f69e68 100644
--- a/src/modules/evas/model_loaders/ply/evas_model_load_ply.c
+++ b/src/modules/evas/model_loaders/ply/evas_model_load_ply.c
@@ -240,6 +240,7 @@ evas_model_load_file_ply(Evas_Canvas3D_Mesh *mesh, Eina_File *file)
240 evas_model_load_vertex_data_unmap(mesh, 0, header); 240 evas_model_load_vertex_data_unmap(mesh, 0, header);
241 evas_model_load_aabb_add_to_frame(mesh, 0, stride); 241 evas_model_load_aabb_add_to_frame(mesh, 0, stride);
242 242
243 free(split_of_map[0]);
243 free(split_of_map); 244 free(split_of_map);
244 if (map) 245 if (map)
245 { 246 {