mirror of
https://github.com/systemd/systemd.git
synced 2024-12-30 17:18:08 +03:00
ptyfwd: make sure pty_forward_free() follows our usual semantics regarding NULL
This commit is contained in:
parent
e7d2b00e0d
commit
518c4f0488
@ -552,6 +552,8 @@ int pty_forward_new(
|
||||
}
|
||||
|
||||
PTYForward *pty_forward_free(PTYForward *f) {
|
||||
if (!f)
|
||||
return NULL;
|
||||
pty_forward_disconnect(f);
|
||||
return mfree(f);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user