Changeset 2290 for trunk/src/kash/output.c
- Timestamp:
- Feb 27, 2009, 5:08:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/output.c
r1784 r2290 89 89 psh->out2 = &psh->errout; 90 90 if (psh->memout.buf != NULL) { 91 ckfree(psh ->memout.buf);91 ckfree(psh, psh->memout.buf); 92 92 psh->memout.buf = NULL; 93 93 } … … 153 153 } else if (dest->buf == NULL) { 154 154 INTOFF; 155 dest->buf = ckmalloc( dest->bufsize);155 dest->buf = ckmalloc(psh, dest->bufsize); 156 156 dest->nextc = dest->buf; 157 157 dest->nleft = dest->bufsize; … … 161 161 INTOFF; 162 162 dest->bufsize <<= 1; 163 dest->buf = ckrealloc( dest->buf, dest->bufsize);163 dest->buf = ckrealloc(psh, dest->buf, dest->bufsize); 164 164 dest->nleft = dest->bufsize - offset; 165 165 dest->nextc = dest->buf + offset; … … 198 198 INTOFF; 199 199 if (psh->output.buf) { 200 ckfree(psh ->output.buf);200 ckfree(psh, psh->output.buf); 201 201 psh->output.buf = NULL; 202 202 psh->output.nleft = 0;
Note:
See TracChangeset
for help on using the changeset viewer.