You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for instance, in nucleo-f411RE/src/ch14/main-ex1.c:
data = (uint8_t*)malloc(sizeof(uint8_t)*(len+2));
// ...
/* We are now ready to transfer the buffer over the I2C bus */
returnValue = HAL_I2C_Master_Transmit(hi2c, DevAddress, data, len + 2, HAL_MAX_DELAY);
if(returnValue != HAL_OK)
return returnValue; // <--- !!! you forgot to call free() here
free(data);
The text was updated successfully, but these errors were encountered:
for instance, in nucleo-f411RE/src/ch14/main-ex1.c:
The text was updated successfully, but these errors were encountered: