fix some memory problems

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2 jobs for !141 with pycardium-ble in 55 seconds (queued for 4 seconds)
latest merge request