I was pretty sure to have removed those fclose before

unstable
m m 2012-09-10 08:43:07 +02:00 committed by James Lee
parent 76e05dff30
commit 40b383e247
1 changed files with 0 additions and 2 deletions

View File

@ -659,13 +659,11 @@ DWORD linux_proc_get_program_name(struct connection_entry * connection, unsigned
break;
}
if (fgets(buffer_file, sizeof(buffer_file), fd) == NULL) {
fclose(fd);
do_status = 1;
break;
}
// each entry in cmdline is seperated by '\0' so buffer_file contains first the path of the executable launched
if ((bname = basename(buffer_file)) == NULL) {
fclose(fd);
do_status = 1;
break;
}