Changeset 2290 for trunk/src/kash/expand.c
- Timestamp:
- Feb 27, 2009, 5:08:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/expand.c
r1233 r2290 309 309 INTOFF; 310 310 ifsp = psh->ifsfirst.next->next; 311 ckfree(psh ->ifsfirst.next);311 ckfree(psh, psh->ifsfirst.next); 312 312 psh->ifsfirst.next = ifsp; 313 313 INTON; … … 329 329 INTOFF; 330 330 ifsp = psh->ifslastp->next->next; 331 ckfree(psh ->ifslastp->next);331 ckfree(psh, psh->ifslastp->next); 332 332 psh->ifslastp->next = ifsp; 333 333 INTON; … … 463 463 shfile_close(&psh->fdtab, in.fd); 464 464 if (in.buf) 465 ckfree( in.buf);465 ckfree(psh, in.buf); 466 466 if (in.jp) 467 467 psh->back_exitstatus = waitforjob(psh, in.jp); … … 922 922 return; 923 923 } 924 ifsp = (struct ifsregion *)ckmalloc( sizeof (struct ifsregion));924 ifsp = (struct ifsregion *)ckmalloc(psh, sizeof (struct ifsregion)); 925 925 psh->ifslastp->next = ifsp; 926 926 } … … 1045 1045 INTOFF; 1046 1046 ifsp = psh->ifsfirst.next->next; 1047 ckfree(psh ->ifsfirst.next);1047 ckfree(psh, psh->ifsfirst.next); 1048 1048 psh->ifsfirst.next = ifsp; 1049 1049 INTON; … … 1086 1086 if (psh->expdir == NULL) { 1087 1087 size_t i = strlen(str->text); 1088 psh->expdir = ckmalloc( i < 2048 ? 2048 : i); /* XXX */1088 psh->expdir = ckmalloc(psh, i < 2048 ? 2048 : i); /* XXX */ 1089 1089 } 1090 1090 1091 1091 expmeta(psh, psh->expdir, str->text); 1092 ckfree(psh ->expdir);1092 ckfree(psh, psh->expdir); 1093 1093 psh->expdir = NULL; 1094 1094 INTON;
Note:
See TracChangeset
for help on using the changeset viewer.