Commit aeb9a8a8a97f8b876a378ae4fe330f131437b348

Eric Blake 2009-12-08T10:23:27

fchdir: avoid memory leak on re-registration. Some code paths (such as dup3) could overwrite one registered directory fd with another, and must not leak the old name. * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak. Signed-off-by: Eric Blake <ebb9@byu.net>