- Timestamp:
- Jan 7, 2011, 1:30:54 AM (14 years ago)
- Location:
- trunk/zoo-kernel
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-kernel/service.h
r59 r60 290 290 } 291 291 freeElements(&tmp->next); 292 if(tmp->next!=NULL) 293 free(tmp->next); 292 294 } 293 295 } … … 552 554 553 555 static void addToElements(elements** m,elements* e){ 554 elements* _cursor=*m;555 556 elements* tmp=e; 556 if( _cursor==NULL){557 if(*m==NULL){ 557 558 *m=dupElements(tmp); 558 559 }else{ -
trunk/zoo-kernel/service_conf.y
r58 r60 176 176 freeElements(¤t_element); 177 177 free(current_element); 178 current_element=NULL;179 178 #ifdef DEBUG_SERVICE_CONF 180 179 fprintf(stderr,"(DATAINPUTS - 186) ALLOCATE current_element\n"); … … 505 504 } 506 505 } 507 | SPAIR { curr_key=strdup($1); /*free($1);*/if(debug) fprintf(stderr,"SPAIR FOUND !!\n"); }506 | SPAIR { curr_key=strdup($1);if(debug) fprintf(stderr,"SPAIR FOUND !!\n"); } 508 507 ; 509 508 … … 698 697 #endif 699 698 freeElements(¤t_element); 699 free(current_element); 700 700 current_element=NULL; 701 #ifdef DEBUG_SERVICE_CONF702 fprintf(stderr,"(STARTING)FREE my_service\n");703 #endif704 //freeService(&my_service);705 //free(my_service);706 #ifdef DEBUG_SERVICE_CONF707 fprintf(stderr,"(STARTING)FREE my_service done\n");708 #endif709 701 my_service=NULL; 710 702 scontent=NULL; … … 726 718 srin = fopen(file,"r"); 727 719 if (srin==NULL){ 728 fprintf(stderr,"error : le fichier specifie n'existe pas ou n'est pas accessible en lecture\n") ;720 fprintf(stderr,"error : file not found\n") ; 729 721 return -1; 730 722 } -
trunk/zoo-kernel/zoo_service_loader.c
r59 r60 424 424 freeMaps(&m); 425 425 free(m); 426 freeMap(&request_inputs); 427 free(request_inputs); 428 free(REQUEST); 426 429 return 1; 427 430 }
Note: See TracChangeset
for help on using the changeset viewer.