Make sure we close all open files.

This commit is contained in:
Martin Baulig
2000-02-14 14:25:34 +00:00
parent c92bf0f9a9
commit 00a32c887c
4 changed files with 11 additions and 4 deletions

View File

@@ -65,6 +65,7 @@ glibtop_get_proc_args_s (glibtop *server, glibtop_array *array, pid_t pid)
while (1) {
len = read (cmdline, buffer, BUFSIZ-1);
if (len < 0) {
close (cmdline);
glibtop_free_r (server, ptr);
return NULL;
}