Changeset 25
- Timestamp:
- Sep 22, 2010, 11:39:37 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/zoo_service_loader.c
r21 r25 57 57 #include "service_internal_js.h" 58 58 #endif 59 60 #ifdef USE_PERL 61 #include "service_internal_perl.h" 62 #endif 63 59 64 60 65 … … 173 178 freeMaps(&m); 174 179 free(m); 180 freeMap(&request_inputs); 181 free(request_inputs); 175 182 return 1; 176 183 } … … 183 190 freeMaps(&m); 184 191 free(m); 192 freeMap(&request_inputs); 193 free(request_inputs); 185 194 free(REQUEST); 186 195 return 1; … … 752 761 #endif 753 762 xmlNodePtr cur2=cur->children; 754 while(cur2 !=NULL){755 while(cur2 !=NULL && cur2->type!=XML_ELEMENT_NODE)763 while(cur2){ 764 while(cur2->type!=XML_ELEMENT_NODE) 756 765 cur2=cur2->next; 757 if(cur2==NULL)758 break;759 760 766 /** 761 767 * Indentifier … … 1014 1020 #endif 1015 1021 xmlNodePtr cur4=cur2->children; 1016 while(cur4 !=NULL){1017 while(cur4 !=NULL && cur4->type!=XML_ELEMENT_NODE)1022 while(cur4){ 1023 while(cur4->type!=XML_ELEMENT_NODE) 1018 1024 cur4=cur4->next; 1019 1020 if(cur4==NULL){1021 break;1022 }1023 1025 1024 1026 if(xmlStrcasecmp(cur4->name, BAD_CAST "LiteralData")==0){ … … 1097 1099 dumpMaps(request_input_real_format); 1098 1100 #endif 1099 freeMaps(&tmpmaps); 1100 free(tmpmaps); 1101 tmpmaps=NULL; 1101 tmpmaps=tmpmaps->next; 1102 1102 1103 } 1104 #ifdef DEBUG 1105 dumpMaps(tmpmaps); 1106 #endif 1103 1107 } 1104 1108 #ifdef DEBUG … … 1598 1602 else 1599 1603 #endif 1600 1604 1605 1606 #ifdef USE_PERL 1607 if(strncasecmp(r_inputs->value,"PERL",4)==0){ 1608 eres=zoo_perl_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1609 } 1610 else 1611 #endif 1612 1601 1613 #ifdef USE_JS 1602 1614 if(strncasecmp(r_inputs->value,"JS",2)==0){ … … 1811 1823 #endif 1812 1824 1825 #ifdef USE_PERL 1826 if(strncasecmp(r_inputs->value,"PERL",4)==0){ 1827 eres=zoo_perl_support(&m,request_inputs,s1,&request_input_real_format,&request_output_real_format); 1828 } 1829 else 1830 #endif 1813 1831 #ifdef USE_JS 1814 1832 if(strncasecmp(r_inputs->value,"JS",2)==0){ … … 1846 1864 cpid,m,eres); 1847 1865 1866 //if(getpid()==cpid){ 1848 1867 freeService(&s1); 1849 1868 free(s1); 1850 1869 freeMaps(&m); 1851 1870 free(m); 1871 freeMaps(&tmpmaps); 1872 free(tmpmaps); 1852 1873 1853 1874 freeMaps(&request_input_real_format); 1854 1875 free(request_input_real_format); 1855 1876 1877 //freeMap(&request_inputs); 1878 //free(request_inputs); 1879 1856 1880 /* The following is requested but get issue using with Python support :/ */ 1857 /*freeMaps(&request_output_real_format); 1858 free(request_output_real_format);*/ 1881 /* freeMaps(&request_output_real_format); 1882 free(request_output_real_format); 1883 */ 1859 1884 1860 1885 free(REQUEST); … … 1865 1890 fflush(stderr); 1866 1891 #endif 1892 //} 1867 1893 1868 1894 return 0;
Note: See TracChangeset
for help on using the changeset viewer.