diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-01-15 22:54:22 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2009-01-15 22:54:22 +0000 |
commit | 6a49168735ed28c4e9083b68429c27052daa0103 (patch) | |
tree | 06fa3df6ef053431a58a82e6f258c6b2ca82aa1f /usr.sbin/user | |
parent | 38782c7d0637af1b5942e113c6fec5f10e4e484c (diff) |
Fix a memory leak in in the case where semget() is called with a
non-private key and flags of IPC_CREAT.
Before, if we found an existing semaphore, we jumped to the return and
forgot the free the preallocated semaphore. Instead, free it before we
jump.
Bug reported by Roland Bramm; thanks!
ok miod@.
Diffstat (limited to 'usr.sbin/user')
0 files changed, 0 insertions, 0 deletions