You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@hyperreal.org on 1999/05/07 20:19:21 UTC

cvs commit: apache-apr/apr/file_io/unix open.c

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;