[OpenSIPS-Devel] [OpenSIPS/opensips] aee014: b2b_entities: fix shm memory leak

Vlad Pătrașcu noreply at github.com
Tue Sep 20 15:43:03 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: aee014beb78be050bd2272ee0080a6f8063d9ec0
      https://github.com/OpenSIPS/opensips/commit/aee014beb78be050bd2272ee0080a6f8063d9ec0
  Author: Vlad Patrascu <vladp at opensips.org>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M modules/b2b_entities/dlg.c

  Log Message:
  -----------
  b2b_entities: fix shm memory leak

For the write back db mode, the entity storage data was only freed after
inserting/updating the entity in the database. This would lead to memory
leaks if the entity was deleted before the DB timer task had a chance
to be run.

Thanks go to Norm Brandinger from Five9 for reporting!





More information about the Devel mailing list