From ed2adbf75a0c15fdc034827ddad80c295fe92edc Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 24 Oct 2020 22:15:51 -0700 Subject: [PATCH 1/1] spv-driver: Fix double free on error path. The output_driver_destroy() call also indirectly called fh_unref(). --- src/output/spv-driver.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/output/spv-driver.c b/src/output/spv-driver.c index 935b2fb9f7..3990ab2041 100644 --- a/src/output/spv-driver.c +++ b/src/output/spv-driver.c @@ -72,7 +72,6 @@ spv_create (struct file_handle *fh, enum settings_output_devices device_type, return d; error: - fh_unref (fh); output_driver_destroy (d); return NULL; } -- 2.30.2