[OpenSIPS-Devel] [OpenSIPS/opensips] 1a00e1: Fix PKG memory leak on {s.eval} corner-case

Liviu Chircu noreply at github.com
Wed Nov 15 11:56:10 UTC 2023


  Branch: refs/heads/3.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 1a00e1e9f1337cbb710b70a17171bddc163ecfb7
      https://github.com/OpenSIPS/opensips/commit/1a00e1e9f1337cbb710b70a17171bddc163ecfb7
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2023-11-15 (Wed, 15 Nov 2023)

  Changed paths:
    M pvar.c

  Log Message:
  -----------
  Fix PKG memory leak on {s.eval} corner-case

Make sure to correctly free the transformation data structures even when
parsed by {s.eval} at runtime, as opposed to one-time parsing during
startup, which would never highlight the leak:

    $var(proxy) = "$(du{nameaddr.uri}{re.subst,/scscf-int-/scscf-/})";
    $var(proxy) = $(var(proxy){s.eval});

Fixes #3233

(cherry picked from commit be764a16fe606294339252623deeeaa374e7dae0)





More information about the Devel mailing list