提交 96c63a7e 编写于 作者: W wujing 提交者: lifeng68

fix image store coredump

Signed-off-by: Nwujing <wujing50@huawei.com>
上级 967651c3
......@@ -383,11 +383,12 @@ static digest_image_t *create_empty_digest_images()
{
digest_image_t *digest_images = NULL;
digest_images = (digest_image_t *)util_common_calloc_s(sizeof(digest_image_t *));
digest_images = (digest_image_t *)util_common_calloc_s(sizeof(digest_image_t));
if (digest_images == NULL) {
ERROR("Out of memory");
return NULL;
}
digest_images->images_list_len = 0;
linked_list_init(&digest_images->images_list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册