1
0
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:
Lennart Poettering 2023-12-20 11:59:52 +01:00
parent e7d2b00e0d
commit 518c4f0488

View File

@ -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);
}