Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,11 @@ HRESULT Library_sys_dev_i2c_native_System_Device_I2c_I2cDevice::

if (status != TX_SUCCESS)
{
NANOCLR_SET_AND_LEAVE(CLR_E_PROCESS_EXCEPTION);
// failed to create the thread
// free stack memory
platform_free(palI2c->WorkingThreadStack);

NANOCLR_SET_AND_LEAVE(CLR_E_FAIL);
}

// bump custom state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,11 @@ HRESULT Library_sys_dev_i2c_native_System_Device_I2c_I2cDevice::

if (status != TX_SUCCESS)
{
NANOCLR_SET_AND_LEAVE(CLR_E_PROCESS_EXCEPTION);
// failed to create the thread
// free stack memory
platform_free(palI2c->WorkingThreadStack);

NANOCLR_SET_AND_LEAVE(CLR_E_FAIL);
}

// bump custom state
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,11 @@ HRESULT FindOneDevice(CLR_RT_StackFrame &stack, bool findFirst)

if (status != TX_SUCCESS)
{
NANOCLR_SET_AND_LEAVE(CLR_E_PROCESS_EXCEPTION);
// failed to create the thread
// free stack memory
platform_free(workingThreadStack);

NANOCLR_SET_AND_LEAVE(CLR_E_FAIL);
}

// bump custom state
Expand Down