[OpenSIPS-Devel] [OpenSIPS/opensips] 43ee34: Fix global msg context leakage in error_route

Liviu Chircu noreply at github.com
Wed Oct 12 17:13:08 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 43ee34bbbb48cfcfe02217b03ef72726c01cc83e
      https://github.com/OpenSIPS/opensips/commit/43ee34bbbb48cfcfe02217b03ef72726c01cc83e
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2022-10-12 (Wed, 12 Oct 2022)

  Changed paths:
    M receive.c

  Log Message:
  -----------
  Fix global msg context leakage in error_route

While commit b5bcf046 fixed an issue with missing contexts during
error_route, it was missed that the "parse_error" label does *not* free
up the global context.

The effects of this bug were mostly hidden, affecting only opensips.cfg
scripts which employ the "error_route", causing a slow PKG memory leak,
proportional to the amount of bad SIP received.  Moreover, if these
scripts also use async(), they may occassionally run into a quick
abort() in t_resume_async(), due to a context being already set (BUG).





More information about the Devel mailing list