From: Ben Pfaff Date: Fri, 11 Oct 2019 05:03:54 +0000 (+0000) Subject: driver: Fix memory leak in output_submit(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60619e98fd4c94160a78b275f0f4cc570e539fd7;p=pspp driver: Fix memory leak in output_submit(). --- diff --git a/src/output/driver.c b/src/output/driver.c index e953d11a63..e6fc0ca950 100644 --- a/src/output/driver.c +++ b/src/output/driver.c @@ -250,7 +250,7 @@ output_submit (struct output_item *item) if (idx >= 1 && idx <= 4) { char *key = xasprintf ("Head%zu", idx); - string_map_find_and_delete (&e->heading_vars, key); + free (string_map_find_and_delete (&e->heading_vars, key)); free (key); } }