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

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


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