Commit 0543f49c authored by Pavel Emelyanov's avatar Pavel Emelyanov

pb: Free image object of collection doesn't need it

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ef3ca3a1
......@@ -635,6 +635,9 @@ static int __collect_image(int fd_t, int obj_t, unsigned size,
cr_pb_descs[obj_t].free(msg, NULL);
break;
}
if (!size)
cr_pb_descs[obj_t].free(msg, NULL);
}
close(fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment