devilhorns pushed a commit to branch master.

commit 2a67e78bde9ed2e8f30a0863ff06f8f1a365209b
Author: Chris Michael <[email protected]>
Date:   Fri Jun 28 14:14:44 2013 +0100

    Fix klockwork memleak: We should free 'texts' that we malloc'd earlier
    if we are going to error out.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/evas/canvas/evas_object_textgrid.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/evas/canvas/evas_object_textgrid.c 
b/src/lib/evas/canvas/evas_object_textgrid.c
index c57656c..1247c9c 100644
--- a/src/lib/evas/canvas/evas_object_textgrid.c
+++ b/src/lib/evas/canvas/evas_object_textgrid.c
@@ -694,6 +694,7 @@ evas_object_textgrid_render(Evas_Object *eo_obj, 
Evas_Object_Protected_Data *obj
                  if (!fad)
                    {
                        ERR("Failed to allocate Evas_Font_Array_Data.");
+                       free(texts);
                        return;
                    }
 

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to