[Spice-devel] [spice-0.8] client: Plug some leaks

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Aug 17 07:35:17 PDT 2011


From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>

---
 client/red_channel.cpp    |    1 +
 client/x11/red_window.cpp |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/client/red_channel.cpp b/client/red_channel.cpp
index f4cdf52..ace4a03 100644
--- a/client/red_channel.cpp
+++ b/client/red_channel.cpp
@@ -192,6 +192,7 @@ void RedChannelBase::link(uint32_t connection_id, const std::string& password,
     }
 
     BIO_free(bioKey);
+    EVP_PKEY_free(pubkey);
 
     recive((uint8_t*)&link_res, sizeof(link_res));
     if (link_res != SPICE_LINK_ERR_OK) {
diff --git a/client/x11/red_window.cpp b/client/x11/red_window.cpp
index d53a92f..f3ff95f 100644
--- a/client/x11/red_window.cpp
+++ b/client/x11/red_window.cpp
@@ -1313,6 +1313,7 @@ void RedWindow_p::move_to_current_desktop()
                            &bytes_after_return, &prop_return) == Success &&
                                          actual_type_return != None && actual_format_return == 32) {
         desktop = *(uint32_t *)prop_return;
+        XFree(prop_return);
     } else {
         DBG(0, "get current desktop failed");
     }
-- 
1.7.6



More information about the Spice-devel mailing list