httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-2.0/src/lib/apr/file_io/unix filestat.c
Date Tue, 04 Jan 2000 20:46:50 GMT
rbb         00/01/04 12:46:49

  Modified:    src/lib/apr/file_io/unix filestat.c
  Log:
  If ap_stat allocates space for a file, then ap_stat also has to register
  a cleanup.
  
  Revision  Changes    Path
  1.6       +3 -0      apache-2.0/src/lib/apr/file_io/unix/filestat.c
  
  Index: filestat.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/unix/filestat.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- filestat.c	2000/01/04 19:00:42	1.5
  +++ filestat.c	2000/01/04 20:46:48	1.6
  @@ -106,6 +106,9 @@
               if ((*thefile) == NULL) {
                   return APR_ENOMEM;
               }
  +            (*thefile)->cntxt = cont;
  +            ap_register_cleanup((*thefile)->cntxt, (void *)(*thefile),
  +                                file_cleanup, ap_null_cleanup);
               (*thefile)->fname = ap_pstrdup(cont, fname);
               (*thefile)->filehand = NULL;
               (*thefile)->filedes = -1;
  
  
  

Mime
View raw message