[Spice-devel] [PATCH spice-server 06/11] red-stream: Remove SASL "data" field leak

Frediano Ziglio fziglio at redhat.com
Mon Dec 11 10:28:03 UTC 2017


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/red-stream.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/red-stream.c b/server/red-stream.c
index 45e92a57..5ddf8c54 100644
--- a/server/red-stream.c
+++ b/server/red-stream.c
@@ -357,6 +357,7 @@ void red_stream_free(RedStream *s)
         g_free(s->priv->sasl.mechlist);
         g_free(s->priv->sasl.mechname);
         s->priv->sasl.mechlist = NULL;
+        g_free(s->priv->sasl.data);
         sasl_dispose(&s->priv->sasl.conn);
         s->priv->sasl.conn = NULL;
     }
-- 
2.14.3



More information about the Spice-devel mailing list