Hotfix for mavlink logbuffer, needs another round of validation.
Added logbuffer free function