summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/hardware.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/hardware.c b/src/hardware.c
index 651e666..8ea1c61 100755
--- a/src/hardware.c
+++ b/src/hardware.c
@@ -1045,8 +1045,15 @@ void hw_config_cback(void *p_mem)
} // if (p_buf != NULL)
/* Free the RX event buffer */
+
+// On manta this causes a crash due to an overrun elsewhere.
+// Sad as it is, if we just do not do the free here we'll just leak less than 4K each time BT is turned on.
+// And since when it is turned off, the process dies, this realy only costs us 4K total.
+// I'm willing to part with 4K to avoid debugging bluedroid
+#ifndef MANTA_BUG
if (bt_vendor_cbacks)
bt_vendor_cbacks->dealloc(p_evt_buf);
+#endif
if (is_proceeding == FALSE)
{