Skip to content
Snippets Groups Projects
  1. Jun 10, 2014
  2. Jun 09, 2014
  3. Jun 08, 2014
  4. Jun 07, 2014
  5. Jun 06, 2014
  6. Jun 05, 2014
  7. Jun 04, 2014
  8. Jun 03, 2014
  9. Jun 01, 2014
  10. May 30, 2014
  11. May 29, 2014
  12. May 28, 2014
  13. May 27, 2014
  14. May 25, 2014
    • Matthew Jordan's avatar
      core_unreal: Prevent double free of core_unreal pvt · 09bbfa76
      Matthew Jordan authored
      When a channel is destroyed (such as via ast_channel_release in off nominal
      paths in core_unreal), it will attempt to free (via ast_free) the channel tech
      pvt. This is problematic for a few reasons:
      1. The channel tech pvt is an ao2 object in core_unreal. Free'ing the pvt
         directly is no good.
      2. The channel tech pvt's reference count is dropped just prior to calling
         ast_channel_release, resulting in the pvt's destruction. Hence, the
         channel destructor is free'ing an invalid pointer.
      
      This patch keeps the dropping of the reference count, but sets the pvt to
      NULL on the channel prior to releasing it. This models what would occur if the
      channel was hung up directly.
      ........
      
      Merged revisions 414542 from http://svn.asterisk.org/svn/asterisk/branches/12
      
      
      git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
      09bbfa76
Loading