mirror of https://github.com/mpv-player/mpv
fuzzer_set_property: destroy mpv also on error
Shouldn't matter much and in fact even LSAN doesn't complain, but we
should clean it correctly.
Fixes: 1225bcbd41
This commit is contained in:
parent
8a5989628c
commit
22ca65a59d
|
@ -75,7 +75,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||
}
|
||||
|
||||
if (ret != MPV_ERROR_SUCCESS)
|
||||
return 0;
|
||||
goto done;
|
||||
|
||||
#if MPV_RUN
|
||||
check_error(mpv_set_option_string(ctx, "ao-null-untimed", "yes"));
|
||||
|
@ -93,6 +93,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||
}
|
||||
#endif
|
||||
|
||||
done:
|
||||
mpv_terminate_destroy(ctx);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue