Closed a small memory leak found by valgrind
This commit is contained in:
parent
2cc387fcce
commit
3b95f4c4c4
@ -1347,6 +1347,8 @@ int write_head_part2(Ecma119Image *target, int *write_count, int flag)
|
||||
|
||||
ret = ISO_SUCCESS;
|
||||
ex:;
|
||||
if (buf != NULL)
|
||||
free(buf);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user