httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@hyperreal.org
Subject cvs commit: apache-apr/apr/file_io/unix open.c
Date Fri, 07 May 1999 18:19:21 GMT
rbb         99/05/07 11:19:20

  Modified:    apr/file_io/unix open.c
  Log:
  Changing another malloc to apr_palloc.
  
  Revision  Changes    Path
  1.16      +3 -1      apache-apr/apr/file_io/unix/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/file_io/unix/open.c,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- open.c	1999/04/30 18:38:51	1.15
  +++ open.c	1999/05/07 18:19:20	1.16
  @@ -75,8 +75,10 @@
   apr_file_t *apr_open(apr_context_t *cont, char *fname, apr_int32_t flag,  apr_fileperms_t
mode)
   {
       int oflags = 0;
  -    apr_file_t *dafile = (apr_file_t *)malloc(sizeof(apr_file_t));
  +    apr_file_t *dafilel;
       struct stat info;
  +    
  +    dafile = (apr_file_t *)apr_palloc(cont->pool, sizeof(apr_file_t));
   
       if ((flag & APR_READ) && (flag & APR_WRITE)) {
           oflags = O_RDWR;
  
  
  

Mime
View raw message