Changeset 488
- Timestamp:
- Jun 20, 2014, 1:43:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/zoo_service_loader.c
r486 r488 216 216 217 217 if(prefix!=NULL){ 218 free(prefix);219 218 prefix=NULL; 220 219 } … … 227 226 if(prefix!=NULL){ 228 227 setMapInMaps(m,"lenv",tmp1,prefix); 229 char *cprefix=zStrdup(prefix);230 228 char levels1[17]; 231 229 sprintf(levels1,"%d",level+1); 232 230 setMapInMaps(m,"lenv","level",levels1); 233 res=recursReaddirF(m,n,tmp, cprefix,saved_stdout,level+1,func);231 res=recursReaddirF(m,n,tmp,prefix,saved_stdout,level+1,func); 234 232 sprintf(levels1,"%d",level); 235 233 setMapInMaps(m,"lenv","level",levels1); 236 234 free(prefix); 237 235 prefix=NULL; 238 } 236 }else 237 res=-1; 239 238 free(tmp); 240 239 if(res<0){ … … 243 242 } 244 243 else{ 245 char* tmp0=strdup(dp->d_name);246 244 if(dp->d_name[0]!='.' && strstr(dp->d_name,".zcfg")!=0){ 247 245 int t; … … 790 788 if(request_inputs==NULL || r_inputs==NULL){ 791 789 errorException(m, _("Parameter <request> was not specified"),"MissingParameterValue","request"); 790 freeMap(&request_inputs); 791 free(request_inputs); 792 792 freeMaps(&m); 793 793 free(m);
Note: See TracChangeset
for help on using the changeset viewer.