On 01/11/2018 11:44, Igor Mammedov wrote:
> object_new() returns a new backend with refcount == 1 and
> then later object_property_add_child() increases refcount to 2
> So when ivshmem is desroyed, the backend it has created isn't
> destroyed along with it as children cleanup will bring
> backend's
Igor Mammedov writes:
> On Thu, 1 Nov 2018 15:02:04 +0400
> Marc-André Lureau wrote:
>
>> On Thu, Nov 1, 2018 at 2:53 PM Igor Mammedov wrote:
>> >
>> > object_new() returns a new backend with refcount == 1 and
>> > then later object_property_add_child() increases refcount to 2
>> > So when ivsh
On Thu, 1 Nov 2018 15:27:02 +0100
Philippe Mathieu-Daudé wrote:
> On 1/11/18 11:44, Igor Mammedov wrote:
> > object_new() returns a new backend with refcount == 1 and
> > then later object_property_add_child() increases refcount to 2
> > So when ivshmem is desroyed, the backend it has created isn
On 1/11/18 11:44, Igor Mammedov wrote:
object_new() returns a new backend with refcount == 1 and
then later object_property_add_child() increases refcount to 2
So when ivshmem is desroyed, the backend it has created isn't
^ "destroyed"
destroyed along with it as children
On Thu, 1 Nov 2018 15:02:04 +0400
Marc-André Lureau wrote:
> On Thu, Nov 1, 2018 at 2:53 PM Igor Mammedov wrote:
> >
> > object_new() returns a new backend with refcount == 1 and
> > then later object_property_add_child() increases refcount to 2
> > So when ivshmem is desroyed, the backend it ha
On Thu, Nov 1, 2018 at 2:53 PM Igor Mammedov wrote:
>
> object_new() returns a new backend with refcount == 1 and
> then later object_property_add_child() increases refcount to 2
> So when ivshmem is desroyed, the backend it has created isn't
> destroyed along with it as children cleanup will brin
object_new() returns a new backend with refcount == 1 and
then later object_property_add_child() increases refcount to 2
So when ivshmem is desroyed, the backend it has created isn't
destroyed along with it as children cleanup will bring
backend's refcount only to 1, which leaks backend including
r