Re: [PATCH] xv: fix double free in AddResource failure case

2016-03-02 Thread Adam Jackson
On Tue, 2016-03-01 at 21:39 +0100, Julien Cristau wrote: > XvdiDestroyVideoNotifyList already frees the list if AddResource fails, > so don't do it twice.  And set tpn->client to NULL explicitly to avoid > confusing uninitialized memory with a valid value. remote: I: patch #75511 updated using

[PATCH] xv: fix double free in AddResource failure case

2016-03-01 Thread Julien Cristau
XvdiDestroyVideoNotifyList already frees the list if AddResource fails, so don't do it twice. And set tpn->client to NULL explicitly to avoid confusing uninitialized memory with a valid value. Signed-off-by: Julien Cristau --- Xext/xvmain.c | 5 ++--- 1 file changed, 2