fix a memory leak in device state
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>
Mon, 21 Feb 2011 13:58:18 +0000 (13:58 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Mon, 21 Feb 2011 13:58:18 +0000 (13:58 +0000)
commit54802a099cffad53bac676fa4a2fada957ddb591
tree2cbe2b83b3387ec2c6bdcff876f7ed6c728be8a3
parent83035fdf68bd42b2dd784c0c5420d8672ad95c90
fix a memory leak in device state

The callback handle_statechange (pbx.c) fails to release its data
pointer, leaking memory in the process.

Reported by: tzafrir
Patches:
      18735_pbx_free_callback.diff uploaded by tzafrir (license 46)

Review: https://reviewboard.asterisk.org/r/1110/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@308371 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/pbx.c