Skip to content
Snippets Groups Projects
Commit f05052a9 authored by deuce's avatar deuce
Browse files

Close the distlist file descriptor when finished reading.

parent 97cf09df
No related branches found
No related tags found
No related merge requests found
......@@ -851,6 +851,8 @@ get_distlist(void)
}
memset(dist[r],0,sizeof(dist_t));
uifc.pop(NULL);
if(list>=0)
close(list);
if(r<1)
return(NULL);
return(dist);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment