@@ -1819,7 +1819,6 @@ criuCheckpointJVMImpl(JNIEnv *env,
1819
1819
if (JVMTI_ERROR_NONE != systemReturnCode) {
1820
1820
currentExceptionClass = vm->checkpointState .criuJVMCheckpointExceptionClass ;
1821
1821
nlsMsgFormat = j9nls_lookup_message (J9NLS_DO_NOT_PRINT_MESSAGE_TAG | J9NLS_DO_NOT_APPEND_NEWLINE, J9NLS_JVMTI_COM_IBM_LOG_QUERY_OPT_ERROR, NULL );
1822
- j9mem_free_memory (syslogOptions);
1823
1822
goto wakeJavaThreadsWithExclusiveVMAccess;
1824
1823
}
1825
1824
Trc_VM_criu_checkpointJVMImpl_syslogOptions (currentThread, syslogOptions);
@@ -1864,7 +1863,6 @@ criuCheckpointJVMImpl(JNIEnv *env,
1864
1863
J9NLS_DO_NOT_PRINT_MESSAGE_TAG | J9NLS_DO_NOT_APPEND_NEWLINE,
1865
1864
J9NLS_VM_CRIU_J9_CURRENT_TIME_NANOS_FAILURE,
1866
1865
NULL );
1867
- j9mem_free_memory (syslogOptions);
1868
1866
restoreFailure = true ;
1869
1867
}
1870
1868
@@ -1880,7 +1878,6 @@ criuCheckpointJVMImpl(JNIEnv *env,
1880
1878
j9port_control (J9PORT_CTLDATA_SYSLOG_OPEN, 0 );
1881
1879
setLogOptions (vm, syslogOptions);
1882
1880
}
1883
- j9mem_free_memory (syslogOptions);
1884
1881
1885
1882
if (hasDumpSucceeded) {
1886
1883
/* Calculate restore time excluding `criu restore ...` for MXBean API. */
@@ -1892,7 +1889,6 @@ criuCheckpointJVMImpl(JNIEnv *env,
1892
1889
J9NLS_DO_NOT_PRINT_MESSAGE_TAG | J9NLS_DO_NOT_APPEND_NEWLINE,
1893
1890
J9NLS_VM_CRIU_J9_GET_PROCESS_START_TIME_FAILURE,
1894
1891
NULL );
1895
- j9mem_free_memory (syslogOptions);
1896
1892
restoreFailure = true ;
1897
1893
}
1898
1894
vm->checkpointState .processRestoreStartTimeInNanoseconds = (I_64)restoreNanoUTCTime;
@@ -2088,6 +2084,8 @@ criuCheckpointJVMImpl(JNIEnv *env,
2088
2084
j9mem_free_memory (directoryChars);
2089
2085
}
2090
2086
2087
+ j9mem_free_memory (syslogOptions);
2088
+
2091
2089
VM_VMHelpers::setVMState (currentThread, oldVMState);
2092
2090
internalExitVMToJNI (currentThread);
2093
2091
#endif /* defined(LINUX) */
0 commit comments