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

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


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