mirror of https://github.com/sipwise/rtpengine.git
Create separate function which only does the reading from DB and returns the blob. Refactor __media_player_add_db to use this new function. This slightly changes string allocation semantics: Instead of leaving the string in the DB buffer and then letting __media_player_add_blob_id() do the allocation and duplication, we now immediately duplicate the string into the call's memory arena and immediately free the DB buffers. __media_player_add_blob_id's duplication then turns into a no-op thanks to call_ref(). Change-Id: I4360c7b0e8ec3c9b68cfc5b34b48115d8f4f89b0pull/1897/head
parent
349249f423
commit
52b6e6ea58
Loading…
Reference in new issue