spv-driver: Fix double free on error path.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 25 Oct 2020 05:15:51 +0000 (22:15 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 25 Oct 2020 05:15:51 +0000 (22:15 -0700)
The output_driver_destroy() call also indirectly called fh_unref().

src/output/spv-driver.c

index 935b2fb9f7071d0362532e5e429e9c0450c87d20..3990ab2041e991ba8c2a03cc7e7d7c8a03140a0a 100644 (file)
@@ -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;
 }