[OpenSIPS-Devel] [OpenSIPS/opensips] b7b151: uri: fix memory leak generated by uri_param()

Răzvan Crainea noreply at github.com
Thu Mar 18 10:48:16 EST 2021


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b7b1518e93e9a240266c01d076f4f9793db2886c
      https://github.com/OpenSIPS/opensips/commit/b7b1518e93e9a240266c01d076f4f9793db2886c
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2021-03-18 (Thu, 18 Mar 2021)

  Changed paths:
    M modules/sipmsgops/uri.c

  Log Message:
  -----------
  uri: fix memory leak generated by uri_param()

The `params` list was changing while iterating through params, thus at
the end of the function, the first parameters within the list whould
have leaked. This commit fixes the leak

(cherry picked from commit 855467245a5f60dcd4b66bee709da354ce9cb622)





More information about the Devel mailing list