Ignore:
Timestamp:
Jan 8, 2011, 1:01:25 AM (13 years ago)
Author:
djay
Message:

Remove memory leaks. Add support for minOccurs and maxOccurs informations in the inputs maps to close ticket #12.

File:
1 edited

Legend:

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

    r60 r63  
    2727extern "C" int yylex();
    2828extern "C" int crlex();
    29 
    3029
    3130extern "C" {
     
    472471    SERVICE_URL=strdup(tmpm->value);
    473472  else
    474     SERVICE_URL=DEFAULT_SERVICE_URL;
     473    SERVICE_URL=strdup(DEFAULT_SERVICE_URL);
    475474
    476475  service* s[100];
     
    16141613   * DataInputs and ResponseDocument / RawDataOutput
    16151614   */ 
    1616   char *dfv=addDefaultValues(&request_input_real_format,s1->inputs,m,"inputs");
     1615  char *dfv=addDefaultValues(&request_input_real_format,s1->inputs,m,0);
    16171616  if(strcmp(dfv,"")!=0){
    16181617    char tmps[1024];
     
    16211620    addToMap(tmpe,"code","MissingParameterValue");
    16221621    printExceptionReportResponse(m,tmpe);
     1622    freeService(&s1);
     1623    free(s1);
    16231624    freeMap(&tmpe);
    16241625    free(tmpe);
     
    16261627    free(m);
    16271628    free(REQUEST);
     1629    free(SERVICE_URL);
    16281630    freeMaps(&request_input_real_format);
    16291631    free(request_input_real_format);
     
    16341636    return 1;
    16351637  }
    1636   addDefaultValues(&request_output_real_format,s1->outputs,m,"outputs");
     1638  addDefaultValues(&request_output_real_format,s1->outputs,m,1);
    16371639
    16381640#ifdef DEBUG
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