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

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


  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 854792c82504a4bd3d3b828de1ef152afb3683c0
      https://github.com/OpenSIPS/opensips/commit/854792c82504a4bd3d3b828de1ef152afb3683c0
  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!

(cherry picked from commit aee014beb78be050bd2272ee0080a6f8063d9ec0)





More information about the Devel mailing list