Re: [Qemu-devel] [PATCH v2 2/6] block: Add ImageInfoSpecific to BlockDriverInfo

2013-09-10 Thread Max Reitz
On 2013-09-10 09:50, Fam Zheng wrote: On Tue, 09/10 09:45, Max Reitz wrote: On 2013-09-10 09:37, Fam Zheng wrote: On Tue, 09/10 09:22, Max Reitz wrote: On 2013-09-10 05:26, Fam Zheng wrote: On Fri, 09/06 15:12, Max Reitz wrote: Add the new ImageInfoSpecific type also to BlockDriverInfo. To

Re: [Qemu-devel] [PATCH v2 2/6] block: Add ImageInfoSpecific to BlockDriverInfo

2013-09-10 Thread Fam Zheng
On Tue, 09/10 09:45, Max Reitz wrote: > On 2013-09-10 09:37, Fam Zheng wrote: > >On Tue, 09/10 09:22, Max Reitz wrote: > >>On 2013-09-10 05:26, Fam Zheng wrote: > >>>On Fri, 09/06 15:12, Max Reitz wrote: > Add the new ImageInfoSpecific type also to BlockDriverInfo. > > To prevent memor

Re: [Qemu-devel] [PATCH v2 2/6] block: Add ImageInfoSpecific to BlockDriverInfo

2013-09-10 Thread Max Reitz
On 2013-09-10 09:37, Fam Zheng wrote: On Tue, 09/10 09:22, Max Reitz wrote: On 2013-09-10 05:26, Fam Zheng wrote: On Fri, 09/06 15:12, Max Reitz wrote: Add the new ImageInfoSpecific type also to BlockDriverInfo. To prevent memory leaks, this field has to be initialized to NULL every time befo

Re: [Qemu-devel] [PATCH v2 2/6] block: Add ImageInfoSpecific to BlockDriverInfo

2013-09-10 Thread Fam Zheng
On Tue, 09/10 09:22, Max Reitz wrote: > On 2013-09-10 05:26, Fam Zheng wrote: > >On Fri, 09/06 15:12, Max Reitz wrote: > >>Add the new ImageInfoSpecific type also to BlockDriverInfo. > >> > >>To prevent memory leaks, this field has to be initialized to NULL every > >>time before calling bdrv_get_in

Re: [Qemu-devel] [PATCH v2 2/6] block: Add ImageInfoSpecific to BlockDriverInfo

2013-09-10 Thread Max Reitz
On 2013-09-10 05:26, Fam Zheng wrote: On Fri, 09/06 15:12, Max Reitz wrote: Add the new ImageInfoSpecific type also to BlockDriverInfo. To prevent memory leaks, this field has to be initialized to NULL every time before calling bdrv_get_info and qapi_free_ImageInfoSpecific has to be called on i

Re: [Qemu-devel] [PATCH v2 2/6] block: Add ImageInfoSpecific to BlockDriverInfo

2013-09-09 Thread Fam Zheng
On Fri, 09/06 15:12, Max Reitz wrote: > Add the new ImageInfoSpecific type also to BlockDriverInfo. > > To prevent memory leaks, this field has to be initialized to NULL every > time before calling bdrv_get_info and qapi_free_ImageInfoSpecific has to > be called on it when the BlockDriverInfo obje

[Qemu-devel] [PATCH v2 2/6] block: Add ImageInfoSpecific to BlockDriverInfo

2013-09-06 Thread Max Reitz
Add the new ImageInfoSpecific type also to BlockDriverInfo. To prevent memory leaks, this field has to be initialized to NULL every time before calling bdrv_get_info and qapi_free_ImageInfoSpecific has to be called on it when the BlockDriverInfo object is no longer required. Signed-off-by: Max Re