Ignore:
Timestamp:
Oct 15, 2018, 1:09:48 PM (6 years ago)
Author:
djay
Message:

Fix double definition of the m maps pointer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/prototype-v0/zoo-project/zoo-kernel/service_internal_hpc.c

    r886 r887  
    906906        char *filePath=(char*)malloc((strlen(tmpPath->value)+strlen(jobid->value)+15)*sizeof(char));
    907907        sprintf(filePath,"%s/exec_status_%s",tmpPath->value,jobid->value);
    908         maps* m = (maps *) malloc (MAPS_SIZE);
    909         m->child=NULL;
    910         m->next=NULL;
     908        maps* lm = (maps *) malloc (MAPS_SIZE);
     909        lm->child=NULL;
     910        lm->next=NULL;
    911911        int saved_stdout = dup (fileno (stdout));
    912912        dup2 (fileno (stderr), fileno (stdout));
    913         conf_read(filePath,m);
     913        conf_read(filePath,lm);
    914914        //dumpMaps(m);
    915915        fflush(stdout);
     
    918918        unlink(filePath);
    919919        free(filePath);
    920         addMapsToMaps(main_conf,m);
    921         freeMaps(&m);
    922         free(m);
     920        addMapsToMaps(main_conf,lm);
     921        freeMaps(&lm);
     922        free(lm);
    923923
    924924        input=*real_outputs;
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