<p style="white-space: pre-wrap; word-wrap: break-word;">I'm not a particular fan of this approach, as it deviates the firmware environment significantly from how libosmocore in general works.   The idea of having libosmocoer in firmware always was to have an (as far as possible) identical environment in the firmware than we have on the host.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Couldn't we simply allocate teh msgb's once (from heap) at start and never free them at runtime, using msgb_reset or the like once they are recycled?</p><p><a href="https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/21071">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/21071">change 21071</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/21071"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ccid-firmware </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I65e77c376aca9ed50e234a0b58a7450a8bbd4fe0 </div>
<div style="display:none"> Gerrit-Change-Number: 21071 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 12 Nov 2020 09:51:28 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>