- Correctly free DIR_RECORD::joliet_name

svn path=/trunk/; revision=61651
This commit is contained in:
Thomas Faber 2014-01-17 16:05:29 +00:00
parent 356a1e3a52
commit bc0a6e79fb

View file

@ -211,10 +211,12 @@ static void release_memory(void)
struct directory_record *next =
root.next_in_memory->next_in_memory;
if (joliet)
free (root.joliet_name);
free (root.next_in_memory->joliet_name);
free (root.next_in_memory);
root.next_in_memory = next;
}
if (joliet)
free (root.joliet_name);
if (cd.buffer != NULL)
{
free (cd.buffer);