Skip to content

Commit b2f954a

Browse files
committed
fuzz: Don't leak context on error.
1 parent 08d4f2b commit b2f954a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mp4parse_capi/fuzz/fuzz_targets/fuzz_target_1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ fuzz_target!(|data: &[u8]| {
2727
let context = mp4parse_new(&io);
2828

2929
if mp4parse_read(context) != Mp4parseStatus::Ok {
30+
mp4parse_free(context);
3031
return;
3132
}
3233

0 commit comments

Comments
 (0)