Commit f4b5cc79 authored by Rémi Duraffort's avatar Rémi Duraffort

glutls: fix potential memleak.

(cherry picked from commit f20675ea)
Signed-off-by: default avatarRémi Duraffort <ivoire@videolan.org>
parent 2c2b9c66
...@@ -563,7 +563,10 @@ gnutls_Addx509Directory( vlc_object_t *p_this, ...@@ -563,7 +563,10 @@ gnutls_Addx509Directory( vlc_object_t *p_this,
break; break;
if ((strcmp (ent, ".") == 0) || (strcmp (ent, "..") == 0)) if ((strcmp (ent, ".") == 0) || (strcmp (ent, "..") == 0))
{
free( ent );
continue; continue;
}
char path[strlen (psz_dirname) + strlen (ent) + 2]; char path[strlen (psz_dirname) + strlen (ent) + 2];
sprintf (path, "%s"DIR_SEP"%s", psz_dirname, ent); sprintf (path, "%s"DIR_SEP"%s", psz_dirname, ent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment