From 0ef23c6caae4a97228705574b0c8f3445c6e65dc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=AE=B8=E7=BA=A2=E5=BC=BA?= <277922995@qq.com>
Date: Wed, 13 Mar 2024 17:00:16 +0800
Subject: [PATCH 21/43] bugfix for wrong dynamic allocation object type
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: 许红强 <277922995@qq.com>
---
 src/daemon/modules/image/image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/daemon/modules/image/image.c b/src/daemon/modules/image/image.c
index e7aa81b8..871f5f39 100644
--- a/src/daemon/modules/image/image.c
+++ b/src/daemon/modules/image/image.c
@@ -1535,7 +1535,7 @@ int im_tag_image(const im_tag_request *request, im_tag_response **response)
         return -1;
     }
 
-    *response = util_common_calloc_s(sizeof(im_remove_response));
+    *response = util_common_calloc_s(sizeof(im_tag_response));
     if (*response == NULL) {
         ERROR("Out of memory");
         return -1;
-- 
2.34.1

