diff options
| author | Tom Schwindl <schwindl@posteo.de> | 2023-09-22 23:46:22 +0200 |
|---|---|---|
| committer | Tom Schwindl <schwindl@posteo.de> | 2023-09-22 23:46:22 +0200 |
| commit | 7111608444c9fc00743e9dbd8c4dead3b4001eeb (patch) | |
| tree | c5a2249c5e09445a11abb5b9f84790bebe3bd40b | |
| parent | dac6a7e5a603be7b55180815f3f072e632d87b8b (diff) | |
| download | vis-7111608444c9fc00743e9dbd8c4dead3b4001eeb.tar.gz vis-7111608444c9fc00743e9dbd8c4dead3b4001eeb.tar.xz | |
vis-subprocess.c: remove unnecessary NULL check
| -rw-r--r-- | vis-subprocess.c | 4 |
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); } |
