forked from enlightenment/efl
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
This commit is contained in:
parent
5b1e3b3a89
commit
3b91d33da2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue