From f9b3b48983520c597c620a4d30bc6fcb0f94d53c Mon Sep 17 00:00:00 2001 From: billow Date: Fri, 3 Jan 2025 01:14:51 +0800 Subject: [PATCH] fix leak in `rz_base_type_clone` --- librz/type/base.c | 1 + 1 file changed, 1 insertion(+) diff --git a/librz/type/base.c b/librz/type/base.c index 8dbe822855d..bac5a29d8e7 100644 --- a/librz/type/base.c +++ b/librz/type/base.c @@ -196,6 +196,7 @@ RZ_API RZ_OWN RzBaseType *rz_base_type_clone(RZ_NULLABLE RZ_BORROW RzBaseType *b return NULL; } if (!rz_base_type_clone_into(type, b)) { + rz_type_base_type_free(type); return NULL; } return type;