diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-28 16:33:27 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-28 16:33:27 +0200 |
commit | 1d289b9b38f7da8c2859491f91dacb717cf82501 (patch) | |
tree | 7998462f5c938fd6358284ca9d6c7e9e4d178b1b /lwip | |
parent | 5ba4850606ced0dd645f2b6ce85893ef9af95289 (diff) | |
download | hurd-1d289b9b38f7da8c2859491f91dacb717cf82501.tar.gz hurd-1d289b9b38f7da8c2859491f91dacb717cf82501.tar.bz2 hurd-1d289b9b38f7da8c2859491f91dacb717cf82501.zip |
lwip: Fix port leak on /servers/startup lookup error
Diffstat (limited to 'lwip')
-rw-r--r-- | lwip/startup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lwip/startup.c b/lwip/startup.c index b5d9f763..262dee5b 100644 --- a/lwip/startup.c +++ b/lwip/startup.c @@ -58,7 +58,10 @@ arrange_shutdown_notification (void) initport = file_name_lookup (_SERVERS_STARTUP, 0, 0); if (initport == MACH_PORT_NULL) - return; + { + ports_port_deref (pi); + return; + } notify = ports_get_send_right (pi); ports_port_deref (pi); |