mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-07 22:58:34 +02:00
Hooks
- It is safe to call free() with a null pointer.
This commit is contained in:
parent
0825ce3c56
commit
2ea9b8786e
1 changed files with 2 additions and 2 deletions
|
@ -375,8 +375,8 @@ int Hooks::execute (
|
|||
output += line;
|
||||
}
|
||||
|
||||
if (line)
|
||||
free (line);
|
||||
free (line);
|
||||
line = NULL;
|
||||
fclose (poutf);
|
||||
close (pout[0]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue