From 09498499f6e830e70883ef158de16523d4b08c6f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 7 Jun 2022 18:16:48 +0200 Subject: [PATCH] output: fix make/model/serial memory leak These have been turned into `char *` in be86145322e6 ("output: turn make/model/serial into char *"), but forgot to add the cleanup logic. --- types/output/output.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/output/output.c b/types/output/output.c index a4cb6f740..22b3e79ee 100644 --- a/types/output/output.c +++ b/types/output/output.c @@ -481,6 +481,9 @@ void wlr_output_destroy(struct wlr_output *output) { free(output->name); free(output->description); + free(output->make); + free(output->model); + free(output->serial); output_state_finish(&output->pending);