Changeset 2290 in kBuild for trunk/src/kash/setmode.c
- Timestamp:
- Feb 27, 2009 4:08:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/setmode.c
r1233 r2290 167 167 BITCMD *newset; \ 168 168 setlen += SET_LEN_INCR; \ 169 newset = realloc(saveset, sizeof(BITCMD) * setlen); \169 newset = sh_realloc(NULL, saveset, sizeof(BITCMD) * setlen); \ 170 170 if (newset == NULL) { \ 171 free(saveset); \171 sh_free(NULL, saveset); \ 172 172 return (NULL); \ 173 173 } \ … … 202 202 setlen = SET_LEN + 2; 203 203 204 if ((set = malloc(sizeof(BITCMD) * setlen)) == NULL)204 if ((set = sh_malloc(NULL, sizeof(BITCMD) * setlen)) == NULL) 205 205 return (NULL); 206 206 saveset = set; … … 214 214 perm = (mode_t)strtol(p, &ep, 8); 215 215 if (*ep || perm & ~(STANDARD_BITS|S_ISTXT)) { 216 free(saveset);216 sh_free(NULL, saveset); 217 217 return (NULL); 218 218 } … … 248 248 249 249 getop: if ((op = *p++) != '+' && op != '-' && op != '=') { 250 free(saveset);250 sh_free(NULL, saveset); 251 251 return (NULL); 252 252 }
Note:
See TracChangeset
for help on using the changeset viewer.