mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
Fix crash if no avian.boostrap is specified
This commit is contained in:
parent
9ed312451a
commit
bde33c97f8
@ -3008,7 +3008,8 @@ Machine::Machine(System* system, Heap* heap, Finder* bootFinder,
|
||||
|
||||
populateJNITables(&javaVMVTable, &jniEnvVTable);
|
||||
|
||||
const char* bootstrapProperty = strdup(findProperty(this, BOOTSTRAP_PROPERTY));
|
||||
const char* bootstrapProperty = findProperty(this, BOOTSTRAP_PROPERTY);
|
||||
const char* bootstrapPropertyDup = bootstrapProperty ? strdup(bootstrapProperty) : 0;
|
||||
const char* bootstrapPropertyEnd = bootstrapProperty + (bootstrapProperty ? strlen(bootstrapProperty) : 0);
|
||||
char* codeLibraryName = (char*)bootstrapProperty;
|
||||
char* codeLibraryNameEnd = 0;
|
||||
@ -3039,7 +3040,8 @@ Machine::Machine(System* system, Heap* heap, Finder* bootFinder,
|
||||
libraries->setNext(additionalLibrary);
|
||||
}
|
||||
|
||||
free((void*)bootstrapProperty);
|
||||
if(bootstrapPropertyDup)
|
||||
free((void*)bootstrapPropertyDup);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user