Ignore:
Timestamp:
Oct 27, 2014, 4:47:29 PM (10 years ago)
Author:
djay
Message:

Use the _getStatus function to use unique identifier and free the allocated memory.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/utils/status/service.c

    r495 r515  
    105105       * Parse Status to extract Status / Message
    106106       */
    107       char *tmpStr=getStatus(atoi(tmpMap->value));
     107      char *tmpStr=_getStatus(conf,atoi(tmpMap->value));
    108108#ifdef DEBUG
    109109      fprintf(stderr,"DEBUG: %s \n",tmpStr);
     
    112112        char *tmpStr1=strdup(tmpStr);
    113113        char *tmpStr0=strdup(strstr(tmpStr,"|")+1);
     114        free(tmpStr);
    114115        tmpStr1[strlen(tmpStr1)-strlen(tmpStr0)-1]='\0';
    115116        char *tmpStrFinal=(char*)malloc((strlen(tmpStr0)+11)*sizeof(char));
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