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:
Kacper Michajłow 2024-06-24 17:27:58 +02:00
parent 8a5989628c
commit 22ca65a59d
1 changed files with 2 additions and 1 deletions

View File

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