Ignore:
Timestamp:
Feb 27, 2009, 5:08:07 AM (16 years ago)
Author:
bird
Message:

kash: malloc/free/friends gets a psh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/output.c

    r1784 r2290  
    8989        psh->out2 = &psh->errout;
    9090        if (psh->memout.buf != NULL) {
    91                 ckfree(psh->memout.buf);
     91                ckfree(psh, psh->memout.buf);
    9292                psh->memout.buf = NULL;
    9393        }
     
    153153        } else if (dest->buf == NULL) {
    154154                INTOFF;
    155                 dest->buf = ckmalloc(dest->bufsize);
     155                dest->buf = ckmalloc(psh, dest->bufsize);
    156156                dest->nextc = dest->buf;
    157157                dest->nleft = dest->bufsize;
     
    161161                INTOFF;
    162162                dest->bufsize <<= 1;
    163                 dest->buf = ckrealloc(dest->buf, dest->bufsize);
     163                dest->buf = ckrealloc(psh, dest->buf, dest->bufsize);
    164164                dest->nleft = dest->bufsize - offset;
    165165                dest->nextc = dest->buf + offset;
     
    198198        INTOFF;
    199199        if (psh->output.buf) {
    200                 ckfree(psh->output.buf);
     200                ckfree(psh, psh->output.buf);
    201201                psh->output.buf = NULL;
    202202                psh->output.nleft = 0;
Note: See TracChangeset for help on using the changeset viewer.