提交 6c6e0ecb 编写于 作者: W WangFengTu 提交者: lifeng68

fix coredump when pull image of schema1

Signed-off-by: NWangFengTu <wangfengtu@huawei.com>
上级 340302bb
......@@ -1367,6 +1367,7 @@ static void free_items_not_inherit(docker_image_config_v2 *config)
config->history[i] = NULL;
}
config->history = NULL;
config->history_len = 0;
return;
}
......@@ -1453,10 +1454,8 @@ static int add_rootfs_and_history(pull_descriptor *desc, docker_image_config_v2
history->empty_layer = desc->layers[i].empty_layer;
config->history[i] = history;
config->history_len++;
free_docker_image_history(history);
history = NULL;
config->history_len++;
free_image_manifest_v1_compatibility(v1config);
v1config = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册