Don't free() stack-allocated buffer.

Probably a leftover of use of a Linux extension of getcwd. Currently we use a
buffer on the stack and we must not free it.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2089 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2015-02-23 20:56:36 +00:00
parent 9c1c219348
commit 02a32b75bb

View File

@ -498,11 +498,6 @@ void Read_list_of_files(T_Fileselector *list, byte selected_format)
#endif #endif
closedir(current_directory); closedir(current_directory);
#if defined (__MINT__)
#else
free(current_path);
#endif
current_path = NULL; current_path = NULL;
if (list->Nb_files==0 && list->Nb_directories==0) if (list->Nb_files==0 && list->Nb_directories==0)