Index: src/modules/c/shell/commmands.c =================================================================== --- src/modules/c/shell/commmands.c (Revision 615) +++ src/modules/c/shell/commmands.c (Arbeitskopie) @@ -162,9 +162,10 @@ free(message); closedir(bindir); return 0; + } + + free(dir_entry); - free(dir_entry); - } } while(dir_entry != NULL); closedir(bindir); return -1;