[spice-server] reds: Call sasl_server_done() when destroying SpiceServer instance

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

 



This call will free most of the memory allocated by sasl_server_init().
It's refcounted so should be safe to call from a library.
---
 server/reds.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/server/reds.c b/server/reds.c
index 85043a88d..e195ce611 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3682,6 +3682,7 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds)
         g_object_unref(reds->main_dispatcher);
     }
     reds_cleanup_net(reds);
+    sasl_server_done();
     g_clear_object(&reds->agent_dev);
 
     // NOTE: don't replace with g_list_free_full as this function that passed callback
-- 
2.17.1

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




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