diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-28 16:34:56 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-28 16:34:56 +0200 |
commit | ad592204bc8ad6b931bc184c2047903db1bbce41 (patch) | |
tree | 79e357443085fc4e5c5e75292302f31f1b1f8e8c /lwip | |
parent | 1d289b9b38f7da8c2859491f91dacb717cf82501 (diff) | |
download | hurd-ad592204bc8ad6b931bc184c2047903db1bbce41.tar.gz hurd-ad592204bc8ad6b931bc184c2047903db1bbce41.tar.bz2 hurd-ad592204bc8ad6b931bc184c2047903db1bbce41.zip |
lwip: Drop spurious port deref on error
When ports_create_port returns an error there is no reference to release.
Diffstat (limited to 'lwip')
-rw-r--r-- | lwip/port-objs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lwip/port-objs.c b/lwip/port-objs.c index 70e1aeaf..ce9f9705 100644 --- a/lwip/port-objs.c +++ b/lwip/port-objs.c @@ -62,9 +62,9 @@ make_sockaddr_port (int sock, buflen - offsetof (struct sockaddr, sa_data)); *addr = ports_get_right (addrstruct); *addrtype = MACH_MSG_TYPE_MAKE_SEND; - } - ports_port_deref (addrstruct); + ports_port_deref (addrstruct); + } return err; } |