[CDMAKE]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 17 Jan 2014 16:05:29 +0000 (16:05 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 17 Jan 2014 16:05:29 +0000 (16:05 +0000)
- Correctly free DIR_RECORD::joliet_name

svn path=/trunk/; revision=61651

reactos/tools/cdmake/cdmake.c

index 5d365f0..854f703 100644 (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);