ptyfwd: make sure pty_forward_free() follows our usual semantics regarding NULL

This commit is contained in:
Lennart Poettering
2023-12-20 15:49:59 +01:00
parent e7d2b00e0d
commit 518c4f0488
+2
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);
}