Changeset 488 for trunk


Ignore:
Timestamp:
Jun 20, 2014, 1:43:28 PM (11 years ago)
Author:
djay
Message:

Small fixes in memory gesture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/zoo_service_loader.c

    r486 r488  
    216216
    217217      if(prefix!=NULL){
    218         free(prefix);
    219218        prefix=NULL;
    220219      }
     
    227226      if(prefix!=NULL){
    228227        setMapInMaps(m,"lenv",tmp1,prefix);
    229         char *cprefix=zStrdup(prefix);
    230228        char levels1[17];
    231229        sprintf(levels1,"%d",level+1);
    232230        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);
    234232        sprintf(levels1,"%d",level);
    235233        setMapInMaps(m,"lenv","level",levels1);
    236234        free(prefix);
    237235        prefix=NULL;
    238       }
     236      }else
     237        res=-1;
    239238      free(tmp);
    240239      if(res<0){
     
    243242    }
    244243    else{
    245       char* tmp0=strdup(dp->d_name);
    246244      if(dp->d_name[0]!='.' && strstr(dp->d_name,".zcfg")!=0){
    247245        int t;
     
    790788  if(request_inputs==NULL || r_inputs==NULL){
    791789    errorException(m, _("Parameter <request> was not specified"),"MissingParameterValue","request");
     790    freeMap(&request_inputs);
     791    free(request_inputs);
    792792    freeMaps(&m);
    793793    free(m);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png