Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drouting: Fix an SHM leak with "acc_call_params_avp"
Do NOT store an SHM pointer into an AVP, as you have a minimal chance of somehow getting invoked so you can properly free it! The solution is to store the entire struct into the AVP, as a (char *) buffer -- the tm module will properly free the whole AVP (including this buffer) afterwards. Thanks to Răzvan for the tip!
- Loading branch information
1 parent
46e55b9
commit 4ffe536
Showing
2 changed files
with
12 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters