evas/filter: Avoid leak in error path
authorStefan Schmidt <stefan@osg.samsung.com>
Fri, 24 Jul 2015 16:51:42 +0000 (18:51 +0200)
committerStefan Schmidt <stefan@osg.samsung.com>
Fri, 24 Jul 2015 17:01:10 +0000 (19:01 +0200)
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

index 0ea62a1..bb3f38b 100644 (file)
@@ -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;