Changeset 2290 for trunk/src/kash/eval.c
- Timestamp:
- Feb 27, 2009, 5:08:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/eval.c
r1233 r2290 614 614 if (sys_path == NULL) { 615 615 if (sysctl(mib, 2, 0, &len, 0, 0) != -1 && 616 (sys_path = ckmalloc( len + 5)) != NULL &&616 (sys_path = ckmalloc(psh, len + 5)) != NULL && 617 617 sysctl(mib, 2, sys_path + 5, &len, 0, 0) != -1) { 618 618 memcpy(sys_path, "PATH=", 5); 619 619 } else { 620 ckfree( sys_path);620 ckfree(psh, sys_path); 621 621 /* something to keep things happy */ 622 622 sys_path = def_path; … … 935 935 if (setjmp(jmploc.loc)) { 936 936 if (psh->exception == EXSHELLPROC) { 937 freeparam( (volatile struct shparam *)937 freeparam(psh, (volatile struct shparam *) 938 938 &saveparam); 939 939 } else { 940 freeparam( &psh->shellparam);940 freeparam(psh, &psh->shellparam); 941 941 psh->shellparam = saveparam; 942 942 } … … 957 957 poplocalvars(psh); 958 958 psh->localvars = savelocalvars; 959 freeparam( &psh->shellparam);959 freeparam(psh, &psh->shellparam); 960 960 psh->shellparam = saveparam; 961 961 psh->handler = savehandler;
Note:
See TracChangeset
for help on using the changeset viewer.