xiaoxiang781216 commented on code in PR #7472: URL: https://github.com/apache/incubator-nuttx/pull/7472#discussion_r1017845029
########## arch/arm/src/stm32/stm32_i2c_v2.c: ########## @@ -2804,7 +2804,6 @@ int stm32_i2cbus_uninitialize(struct i2c_master_s *dev) if (--priv->refs) { nxmutex_unlock(&priv->lock); - kmm_free(dev); return OK; Review Comment: No, split to the new patch. ########## arch/arm/src/stm32f7/stm32_i2c.c: ########## @@ -2842,7 +2842,6 @@ int stm32_i2cbus_uninitialize(struct i2c_master_s *dev) if (--priv->refs) { nxmutex_unlock(&priv->lock); - kmm_free(dev); return OK; Review Comment: ditto ########## arch/arm/src/stm32l4/stm32l4_1wire.c: ########## @@ -1247,7 +1247,6 @@ int stm32l4_1wireuninitialize(struct onewire_dev_s *dev) if (--priv->refs) { nxmutex_unlock(&priv->lock); - kmm_free(priv); return OK; Review Comment: ditto -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org