[OpenSIPS-Devel] [OpenSIPS/opensips] f13253: Fixed memory leak on checking disposition hdr.

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Mar 11 11:12:30 CET 2016


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: f13253a65b8c632d9366b26f55daab50e7d91078
      https://github.com/OpenSIPS/opensips/commit/f13253a65b8c632d9366b26f55daab50e7d91078
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2016-03-11 (Fri, 11 Mar 2016)

  Changed paths:
    M modules/sipmsgops/sipmsgops.c

  Log Message:
  -----------
  Fixed memory leak on checking disposition hdr.

Free the parsed disposition body all the time (on success and failure) as it is not attached to any structure, so it will leak if not explicitly be freed.
Credits for reporting this go to Jarrod Baumann.
Based on an original fix from Jarrod Baumann
Closes PR #825

(cherry picked from commit 4601e5653be202912a3732f08cdafc63d64afe7f)




More information about the Devel mailing list