[OpenSIPS-Devel] [OpenSIPS/opensips] 854713: rest_client: Fix a PKG memory leak

Liviu Chircu liviu at opensips.org
Thu Mar 2 11:09:08 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 854713857a7fbfc1d0ee9234cd7d85dbb98158dd
      https://github.com/OpenSIPS/opensips/commit/854713857a7fbfc1d0ee9234cd7d85dbb98158dd
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-03-02 (Thu, 02 Mar 2017)

  Changed paths:
    M modules/rest_client/rest_methods.c

  Log Message:
  -----------
  rest_client: Fix a PKG memory leak

The blocking GET / POST / PUT functions would leak PKG memory whenever the
"Content-Type" function parameter was omitted.

Thanks for reporting and troubleshooting to Jim DeVito


  Commit: 19656995a54028df9a2ae0c21e77461116ea6d1c
      https://github.com/OpenSIPS/opensips/commit/19656995a54028df9a2ae0c21e77461116ea6d1c
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-03-02 (Thu, 02 Mar 2017)

  Changed paths:
    M modules/rest_client/rest_cb.c
    M modules/rest_client/rest_methods.c

  Log Message:
  -----------
  rest_client: Improve some whitespace trimming logic

(Eliminates any likelihood of a crash)


Compare: https://github.com/OpenSIPS/opensips/compare/2557b5960576...19656995a540


More information about the Devel mailing list