﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
304	Double free caused by delete of directory from DirCnr followed by rescan/clear of container.	Gregg Young	Gregg Young	"It is caused by deleting something from a directory container and then later clearing the container. What appears to happen is that pszFileName gets freed but since pszDisplayName pointed into pszFileName it wasn't freed (as it was designed). The problem is that when the container is cleared since pszDisplayName which no longer points into the freed pszFileName gets free (unfortunately for the second time). I now check for pszDisplayname after pszFileName 
has been freed and if it exists and isn't Nullstr I set it to NULL. 

One additional note. This triggers the dbgmsg that states pszFileName is already NULL. Another interesting finding is it only happens if a subdirectory is deleted. I have just set pszDisplayName NULL if pszFileName is already NULL (I moved it above the 
pszDisplayName free code). The real fix is not to cycle it through again. We need to look at how deleting a directory is done differently from a file. "	defect	closed	minor	Release_3.15	fm/2 base	3.14	fixed		
