Re: [spice-gtk] sasl: Rework memory handling in spice_channel_perform_auth_sasl()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 16, 2013 at 01:13:10PM -0400, Marc-André Lureau wrote:
> 
> 
> ----- Original Message -----
> > While looking at the SASL code, I noticed some memory leaks in error paths.
> > This commit adds a cleanup: block to free some of the memory dynamically
> > allocated in that function, and remove the corresponding g_free() from
> > the regular code flow. This should ensure that both the regular path
> > and the error paths free the same memory.
> > ---
> > 
> > Something like this?
> 
> yes! ack (assuming it is tested :)

It's tested in the sense that I've successfully a sasl session with that
change, and that I've added random goto error in that function, and did
not get bad results (auth failed).
I can test some more with valgrind if that makes you more confident about
the code ;)

Christophe

Attachment: pgpYqtio_T6yr.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]