From cbf273bfb07d7db5353eb691b903a321b7e5bd59 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 22 Nov 2022 17:15:22 -0800 Subject: [PATCH] spv-driver: Fix memory leak on error path. --- src/output/spv-driver.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/output/spv-driver.c b/src/output/spv-driver.c index 707e82abfa..7e22cf0c1b 100644 --- a/src/output/spv-driver.c +++ b/src/output/spv-driver.c @@ -62,6 +62,7 @@ spv_create (struct file_handle *fh, enum settings_output_devices device_type, if (spv->writer == NULL) { msg (ME, "%s", error); + free (error); goto error; } -- 2.30.2