aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-url.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-url.c')
-rw-r--r--camel/camel-url.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/camel/camel-url.c b/camel/camel-url.c
index 86eb4fa104..cdbccfe14e 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -379,6 +379,12 @@ void
camel_url_free (CamelURL *url)
{
if (url) {
+ if (url->passwd)
+ memset(url->passwd, 0, strlen(url->passwd));
+ if (url->user)
+ memset(url->user, 0, strlen(url->user));
+ if (url->host)
+ memset(url->host, 0, strlen(url->host));
g_free (url->protocol);
g_free (url->user);
g_free (url->authmech);