From: Ben Pfaff Date: Sun, 25 Oct 2020 05:15:51 +0000 (-0700) Subject: spv-driver: Fix double free on error path. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed2adbf75a0c15fdc034827ddad80c295fe92edc;hp=5909ba410666a27b96646521acdc17f5cb53b5e7;p=pspp spv-driver: Fix double free on error path. The output_driver_destroy() call also indirectly called fh_unref(). --- 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; }