aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Schwindl <schwindl@posteo.de>2023-09-22 23:46:22 +0200
committerTom Schwindl <schwindl@posteo.de>2023-09-22 23:46:22 +0200
commit7111608444c9fc00743e9dbd8c4dead3b4001eeb (patch)
treec5a2249c5e09445a11abb5b9f84790bebe3bd40b
parentdac6a7e5a603be7b55180815f3f072e632d87b8b (diff)
downloadvis-7111608444c9fc00743e9dbd8c4dead3b4001eeb.tar.gz
vis-7111608444c9fc00743e9dbd8c4dead3b4001eeb.tar.xz
vis-subprocess.c: remove unnecessary NULL check
-rw-r--r--vis-subprocess.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vis-subprocess.c b/vis-subprocess.c
index eaeba2a..f06688c 100644
--- a/vis-subprocess.c
+++ b/vis-subprocess.c
@@ -47,10 +47,8 @@ static void destroy_process(Process **pointer) {
if (target->invalidator) {
*(target->invalidator) = NULL;
}
- if (target->name) {
- free(target->name);
- }
*pointer = target->next;
+ free(target->name);
free(target);
}