[Geany-devel] Fix crash and memory leak in treeviewer.c.

Thomas Martitz thomas.martitz at xxxxx
Mon May 2 15:37:35 UTC 2011

In path_is_in_dir(), if it's about to return NULL (if the function 
have no path components in common) it tried to free() a string
literal, which causes a crash. In the same function, there was a memory 
because diffed_path was reassigned without being free()'d before.

Fix both problems.

More information about the Devel mailing list