Changeset 748 for trunk/zoo-project/zoo-kernel
- Timestamp:
- Jan 4, 2016, 10:34:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_java.c
r747 r748 121 121 if(javaXMap!=NULL) 122 122 cursorx=javaXMap->content; 123 options[0].optionString = zStrdup(oclasspath);123 options[0].optionString = oclasspath; 124 124 options[0].extraInfo=NULL; 125 125 #ifdef WIN32 … … 131 131 for(i=0;i<nbc0;i++){ 132 132 char *tmp=parseJVMXXOption(cursorxx); 133 options[start+i].optionString = tmp;133 options[start+i].optionString = zStrdup(tmp); 134 134 options[start+i].extraInfo=NULL; 135 135 free(tmp); … … 138 138 for(;i<nbc1+nbc0;i++){ 139 139 char *tmp=parseJVMXOption(cursorx); 140 options[start+i].optionString = tmp;140 options[start+i].optionString = zStrdup(tmp); 141 141 options[start+i].extraInfo=NULL; 142 142 free(tmp); … … 256 256 (*jvm)->DestroyJavaVM(jvm); 257 257 #endif 258 for(i=0;i<nbc1+nbc0;i++){ 259 free(options[start+i].optionString); 260 } 258 261 return res; 259 262 }
Note: See TracChangeset
for help on using the changeset viewer.