Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Oct 1998 18:30:03 -0700 (PDT)
From:      Julian Elischer <julian@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/lib/libc/gen scandir.c
Message-ID:  <199810070130.SAA27808@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
julian      1998/10/06 18:30:02 PDT

  Modified files:
    lib/libc/gen         scandir.c 
  Log:
  Fix a memory leak
  PR: 7923
  Submitted by: Archie Cobbs <archie@whistle.com>
  
          The scandir() function returns -1 if it fails.
  	In many cases when this happens, it does not free
  	the memory that it allocated, resulting in a memory
  	leak, or close the directory opened with opendir().
  	BAD DOG, BAD!
  
  Revision  Changes    Path
  1.5       +25 -15    src/lib/libc/gen/scandir.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810070130.SAA27808>