[hackers] [surf] Free temporary certificate in setcert || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sun, 30 Apr 2017 23:25:10 +0200 (CEST)

commit db7922f173b803d14039f286146c949ded1538cb
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Sat Apr 29 14:34:02 2017 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Sat Apr 29 14:34:02 2017 +0200

    Free temporary certificate in setcert

diff --git a/surf.c b/surf.c
index fcaa506..88dfd75 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -789,6 +789,7 @@ setcert(Client *c, const char *uri)
 
         webkit_web_context_allow_tls_certificate_for_host(
             webkit_web_view_get_context(c->view), cert, host);
+ g_object_unref(cert);
 
         free(host);
 }
Received on Sun Apr 30 2017 - 23:25:10 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 30 2017 - 23:36:35 CEST