summaryrefslogtreecommitdiffstats
path: root/src/utilities.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utilities.c')
-rw-r--r--src/utilities.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utilities.c b/src/utilities.c
index c1a04ed..9bfecba 100644
--- a/src/utilities.c
+++ b/src/utilities.c
@@ -68,8 +68,8 @@ void get_command(pid_t current_pid, char *command, size_t len)
proc_file = fopen(proc_str, "r");
if (proc_file) {
getline(&command, &len, proc_file);
+ fclose(proc_file);
}
- fclose(proc_file);
}
bool peek_filename(pid_t pid, unsigned long long p_reg, struct String *str)