[PATCH spice-server v2 5/11] reds: Use GLib memory functions for link

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

 



Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 server/reds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Changes since v1:
- rebases on master, one free was removed.

diff --git a/server/reds.c b/server/reds.c
index 8b081bbe2..683af96ff 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -345,7 +345,7 @@ static void reds_link_free(RedLinkInfo *link)
         link->tiTicketing.rsa = NULL;
     }
 
-    free(link);
+    g_free(link);
 }
 
 #ifdef RED_STATISTICS
@@ -2455,7 +2455,7 @@ static RedLinkInfo *reds_init_client_connection(RedsState *reds, int socket)
 
     red_socket_set_keepalive(socket, TRUE, KEEPALIVE_TIMEOUT);
 
-    link = spice_new0(RedLinkInfo, 1);
+    link = g_new0(RedLinkInfo, 1);
     link->reds = reds;
     link->stream = reds_stream_new(reds, socket);
 
-- 
2.13.5

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://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]