diff options
author | Miles Bader <miles@gnu.org> | 1995-07-22 16:56:26 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-07-22 16:56:26 +0000 |
commit | 9d85214faa0184364faade1253f389c4c7145f65 (patch) | |
tree | 504752e7060430c05f58bb30bf211d4f6b829ea4 /pflocal | |
parent | a7d93844e0e10b346cd460206c42819b1d311ecd (diff) |
Formerly pf.c.~8~
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/pf.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pflocal/pf.c b/pflocal/pf.c index 0f0e2d9c..24fc7936 100644 --- a/pflocal/pf.c +++ b/pflocal/pf.c @@ -53,9 +53,13 @@ S_socket_create (mach_port_t pf, err = sock_create (pipe_class, &sock); if (!err) - err = sock_create_port (sock, port); - if (!err) - *port_type = MACH_MSG_TYPE_MAKE_SEND; + { + err = sock_create_port (sock, port); + if (err) + sock_free (sock); + else + *port_type = MACH_MSG_TYPE_MAKE_SEND; + } return err; } |