From: Ben Pfaff Date: Wed, 23 Nov 2022 01:15:22 +0000 (-0800) Subject: spv-driver: Fix memory leak on error path. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbf273bfb07d7db5353eb691b903a321b7e5bd59;p=pspp spv-driver: Fix memory leak on error path. --- 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; }