stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3b91d33da2d1f3ba6f35f66f6d921b0a2a566ce8

commit 3b91d33da2d1f3ba6f35f66f6d921b0a2a566ce8
Author: Stefan Schmidt <ste...@osg.samsung.com>
Date:   Fri Jul 24 18:51:42 2015 +0200

    evas/filter: Avoid leak in error path
    
    If format is not found we go out of scope and would leak param. Free 
instead.
    
    CID 1308610
---
 src/lib/evas/filters/evas_filter_parser.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/evas/filters/evas_filter_parser.c 
b/src/lib/evas/filters/evas_filter_parser.c
index 0ea62a1..bb3f38b 100644
--- a/src/lib/evas/filters/evas_filter_parser.c
+++ b/src/lib/evas/filters/evas_filter_parser.c
@@ -401,6 +401,7 @@ _instruction_param_addv(Evas_Filter_Instruction *instr, 
const char *name,
         break;
       case VT_NONE:
       default:
+        free(param);
         return EINA_FALSE;
      }
    param->allow_seq = sequential;

-- 


Reply via email to