diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-08-28 09:37:04 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-12-11 14:55:32 +0000 |
commit | 765b5209ef0434cf216a7a5277037e15b0d491a1 (patch) | |
tree | a3eb995bd3c60fa2e78f7b68e8ff88ccc666434d /server/reds.c | |
parent | c9282b3bc743d474d9c0734e75ac176a0bdfb170 (diff) |
reds: do not use g_malloc0 in server code
The rest of code is using spice_malloc* functions, use them for
consistency.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'server/reds.c')
-rw-r--r-- | server/reds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/reds.c b/server/reds.c index 31362ef1..e8cf168e 100644 --- a/server/reds.c +++ b/server/reds.c @@ -1888,7 +1888,7 @@ static void reds_handle_ticket(void *opaque) RSA_size(link->tiTicketing.rsa), SPICE_MAX_PASSWORD_LENGTH); } - password = g_malloc0(RSA_size(link->tiTicketing.rsa) + 1); + password = spice_malloc0(RSA_size(link->tiTicketing.rsa) + 1); password_size = RSA_private_decrypt(link->tiTicketing.rsa_size, link->tiTicketing.encrypted_ticket.encrypted_data, (unsigned char *)password, @@ -1928,7 +1928,7 @@ error: reds_link_free(link); end: - g_free(password); + free(password); } static void reds_get_spice_ticket(RedLinkInfo *link) |