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:
Stefan Schmidt 2015-07-24 18:51:42 +02:00
parent 5b1e3b3a89
commit 3b91d33da2
1 changed files with 1 additions and 0 deletions

View 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;