From 9f7ab85718302955cb39454e675b419527177e52 Mon Sep 17 00:00:00 2001 From: YaoBing Xiao Date: Mon, 9 Sep 2024 16:12:01 +0800 Subject: [PATCH] tearing_control_v1: Free the wlr_tearing_control_v1 on error Signed-off-by: YaoBing Xiao --- types/wlr_tearing_control_v1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_tearing_control_v1.c b/types/wlr_tearing_control_v1.c index cd7cd5a5..e5a88fec 100644 --- a/types/wlr_tearing_control_v1.c +++ b/types/wlr_tearing_control_v1.c @@ -122,6 +122,7 @@ static void tearing_control_manager_handle_get_tearing_control( wl_resource_get_version(resource), id); if (created_resource == NULL) { + free(hint); wl_resource_post_no_memory(resource); return; }