summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2017-04-29 14:34:02 +0200
committerQuentin Rameau <quinq@fifth.space>2017-04-29 14:34:02 +0200
commitdb7922f173b803d14039f286146c949ded1538cb (patch)
tree03c3ddf0a3f93c6294cb074ad077846a92ea5b6e
parent0d1e670ac3e6a5ea02ff1c6a6e64263b425aef9c (diff)
downloadsurf-db7922f173b803d14039f286146c949ded1538cb.tar.gz
surf-db7922f173b803d14039f286146c949ded1538cb.tar.bz2
surf-db7922f173b803d14039f286146c949ded1538cb.zip
Free temporary certificate in setcert
-rw-r--r--surf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/surf.c b/surf.c
index fcaa506..88dfd75 100644
--- a/surf.c
+++ b/surf.c
@@ -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);
}