Fix missing free in sh file completion

This commit is contained in:
K. Lange 2018-08-17 19:52:18 +09:00
parent 8bff3a917e
commit 896b5ba877

View File

@ -385,6 +385,7 @@ void tab_complete_func(rline_context_t * c) {
char * x = malloc(strlen(tmp) + 1 + strlen(ent->d_name) + 1);
sprintf(x,"%s/%s",tmp,ent->d_name);
lstat(x, &statbuf);
free(x);
} else {
lstat(ent->d_name, &statbuf);
}