]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Merged revisions 371491 via svnmerge from
authorAutomerge script <automerge@asterisk.org>
Fri, 17 Aug 2012 21:21:43 +0000 (21:21 +0000)
committerAutomerge script <automerge@asterisk.org>
Fri, 17 Aug 2012 21:21:43 +0000 (21:21 +0000)
commit29871c0945a6c60eadff0cccdf3839a00f84c221
treeb551133d8f1f353859c0b57e4e0325cd97d1c68d
parentae78f5d70b343aa8afa55607ddc847f1f1358527
Merged revisions 371491 via svnmerge from
file:///srv/subversion/repos/asterisk/branches/10

................
  r371491 | mjordan | 2012-08-17 15:21:30 -0500 (Fri, 17 Aug 2012) | 17 lines

  Fix memory leak in XML documentation

  When formatting documentation fields, the XML documentation parser calls
  xmldoc_get_formatted.  This function allocates a string buffer at the
  beginning of its routine.  Unfortunately, on certain code paths, it also
  calls xmldoc_string_cleanup, which assumes that it will create the string
  buffer.  The previously allocated string buffer is then leaked by the
  xmldoc_string_cleanup routine.

  Now: we don't do that.

  (closes issue AST-932)
  Reported by: Alexander Homig
  ........

  Merged revisions 371469 from http://svn.asterisk.org/svn/asterisk/branches/1.8
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10-digiumphones@371504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/xmldoc.c