Changeset 96828e4 for popexec.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:33 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
35b6eb9
Parents:
9518a85
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:51:45)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:33)
Message:
Replace owl_malloc with g_new and g_new0.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • popexec.c

    r9eb38bb r96828e4  
    2222  }
    2323
    24   pe = owl_malloc(sizeof(owl_popexec));
     24  pe = g_new(owl_popexec, 1);
    2525  if (!pe) return NULL;
    2626  pe->winactive=0;
     
    126126  if (navail<=0) return;
    127127  if (navail>1024) { navail = 1024; }
    128   buf = owl_malloc(navail+1);
     128  buf = g_new(char, navail+1);
    129129  owl_function_debugmsg("about to read %d", navail);
    130130  bread = read(d->fd, buf, navail);
Note: See TracChangeset for help on using the changeset viewer.