httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wsanc...@apache.org
Subject cvs commit: apache-1.3/src/os/unix os.c
Date Mon, 12 Nov 2001 17:36:38 GMT
wsanchez    01/11/12 09:36:38

  Modified:    src/os/unix os.c
  Log:
  Fix leak of NSObjectFileImage handle.
  
  Revision  Changes    Path
  1.21      +4 -1      apache-1.3/src/os/unix/os.c
  
  Index: os.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/os/unix/os.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- os.c	2000/01/15 16:01:09	1.20
  +++ os.c	2001/11/12 17:36:38	1.21
  @@ -107,10 +107,13 @@
   
   #elif defined(HAVE_DYLD)
       NSObjectFileImage image;
  +    NSModule handle;
       if (NSCreateObjectFileImageFromFile(path, &image) !=
           NSObjectFileImageSuccess)
           return NULL;
  -    return NSLinkModule(image, path, TRUE);
  +    handle = NSLinkModule(image, path, TRUE);
  +    NSDestroyObjectFileImage(image);
  +    return handle;
   
   #elif defined(OSF1) || defined(SEQUENT) ||\
       (defined(__FreeBSD_version) && (__FreeBSD_version >= 220000))
  
  
  

Mime
View raw message