aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-remote-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-remote-store.c')
-rw-r--r--camel/camel-remote-store.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/camel-remote-store.c b/camel/camel-remote-store.c
index 286cd6298f..21bd252c45 100644
--- a/camel/camel-remote-store.c
+++ b/camel/camel-remote-store.c
@@ -236,6 +236,7 @@ remote_connect (CamelService *service, CamelException *ex)
#endif /* HAVE_NSS */
ret = camel_tcp_stream_connect (CAMEL_TCP_STREAM (tcp_stream), h, port);
+ camel_free_host(h);
if (ret == -1) {
if (errno == EINTR)
camel_exception_set (ex, CAMEL_EXCEPTION_USER_CANCEL,