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

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


  Branch: refs/heads/3.3
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f2a083a017cbe26cdd6c42c70688ca38e59456cf
      https://github.com/OpenSIPS/opensips/commit/f2a083a017cbe26cdd6c42c70688ca38e59456cf
  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