Commit f20675ea authored by ivoire's avatar ivoire
Browse files

glutls: fix potential memleak.

parent a829c558
......@@ -563,7 +563,10 @@ gnutls_Addx509Directory( vlc_object_t *p_this,
break;
if ((strcmp (ent, ".") == 0) || (strcmp (ent, "..") == 0))
{
free( ent );
continue;
}
char path[strlen (psz_dirname) + strlen (ent) + 2];
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