[OpenSIPS-Devel] [OpenSIPS/opensips] 60716e: presence_dialoginfo: Fix memory leak in dlginfo_ag...

Bogdan Andrei IANCU bogdan at opensips.org
Mon Mar 10 22:36:42 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 60716e833c9e6f3c0f566e7de27de905848aa02b
      https://github.com/OpenSIPS/opensips/commit/60716e833c9e6f3c0f566e7de27de905848aa02b
  Author: Walter Doekes <walter+github at wjd.nu>
  Date:   2014-03-06 (Thu, 06 Mar 2014)

  Changed paths:
    M modules/presence_callinfo/add_events.c
    M modules/presence_dialoginfo/notify_body.c

  Log Message:
  -----------
  presence_dialoginfo: Fix memory leak in dlginfo_agg_nbody.

This commit fixes a couple of presence issues (introduced in 80c48e6):
 * There was a memory leak in dlginfo_agg_nbody.
 * Bounds checking in dlginfo_agg_nbody was off by 4 (potential stack
   corruption).
 * There were 2 PKG allocs, straight after one another while no alloc
   was needed at all: reduced to 1 optional one.
 * Replace "dumy" with "dummy" in the vicinity.


  Commit: 1e02b323fa38e81949a3e8e9b3cf4e37dd9fa6e5
      https://github.com/OpenSIPS/opensips/commit/1e02b323fa38e81949a3e8e9b3cf4e37dd9fa6e5
  Author: Bogdan Andrei IANCU <bogdan at opensips.org>
  Date:   2014-03-10 (Mon, 10 Mar 2014)

  Changed paths:
    M modules/presence_callinfo/add_events.c
    M modules/presence_dialoginfo/notify_body.c

  Log Message:
  -----------
  Merge pull request #174 from wdoekes/wjd-fix_dialogaggr_memleak

presence_dialoginfo: Fix memory leak in dlginfo_agg_nbody.


Compare: https://github.com/OpenSIPS/opensips/compare/3c1164a01220...1e02b323fa38


More information about the Devel mailing list