[Spice-commits] server/reds.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Mon Mar 6 17:01:48 UTC 2017
server/reds.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 541d54af420604a93a3937bc3500c6a303d47c9f
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Sat Mar 4 01:29:59 2017 +0000
reds: Do not leak SSL context
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/reds.c b/server/reds.c
index 2983aae..fc720a3 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3703,6 +3703,10 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds)
}
reds_core_timer_remove(reds, reds->mig_timer);
+ if (reds->ctx) {
+ SSL_CTX_free(reds->ctx);
+ }
+
if (reds->main_dispatcher) {
g_object_unref(reds->main_dispatcher);
}
More information about the Spice-commits
mailing list