[Spice-devel] Is it a possible memory leak (spice-gtk/src/channel-display.c)?

Ding Fei danix800 at gmail.com
Wed Sep 9 12:42:14 UTC 2020


Hi all, for the latest commit in 'spice-gtk/src/channel-display.c', in the
static function
'create_canvas', the first returning point (line 997) and the 'if
(surface->primary)' (line 1036)
is not taken then the second returning point, the allocated memory for
surface would be lost.

All the calling site store surface on the stack.

Can anyone confirm this?

-- 
Best Regards

Ding Fei
E-mail: danix800 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20200909/91dc7488/attachment.htm>


More information about the Spice-devel mailing list