summaryrefslogtreecommitdiffstats
path: root/mutt_idna.c
diff options
context:
space:
mode:
authorRocco Rutte <pdmef@gmx.net>2006-05-18 17:35:29 +0000
committerRocco Rutte <pdmef@gmx.net>2006-05-18 17:35:29 +0000
commit503d12ff6d253b25eaf6a2dc4c24ee54a825bbc3 (patch)
tree042a6eef13e07b7519da4be30337f73412284195 /mutt_idna.c
parent5dff0a79b838d056a86fdf092a20fbbb84f649ba (diff)
Avoid safe_free() usage and add security checks
Add checks to check_sec.sh for memory functions. These include a check for use of safe_free() instead of FREE() and a check whether FREE(&...) is used. For the former, __SAFE_FREE_CHECKED__ is to be used, for the latter __FREE_CHECKED__ to avoid messages from check_sec.sh
Diffstat (limited to 'mutt_idna.c')
-rw-r--r--mutt_idna.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mutt_idna.c b/mutt_idna.c
index 36915a45..52138b3f 100644
--- a/mutt_idna.c
+++ b/mutt_idna.c
@@ -89,7 +89,7 @@ int mutt_idna_to_local (const char *in, char **out, int flags)
return 0;
notrans:
- FREE (out);
+ FREE (out); /* __FREE_CHECKED__ */
*out = safe_strdup (in);
return 1;
}
@@ -114,7 +114,7 @@ int mutt_local_to_idna (const char *in, char **out)
FREE (&tmp);
if (rv < 0)
{
- FREE (out);
+ FREE (out); /* __FREE_CHECKED__ */
*out = safe_strdup (in);
}
return rv;