Fix unintential memory retention in stringfields.
authorCorey Farrell <git@cfware.com>
Thu, 6 Nov 2014 09:18:48 +0000 (09:18 +0000)
committerCorey Farrell <git@cfware.com>
Thu, 6 Nov 2014 09:18:48 +0000 (09:18 +0000)
commit7e2369310c974975a0cce7286fdb8d37e4d06490
treef590a506b3b1542baeab291105345a62fa4b743c
parent362dde22293c966594a30d4386212dc12dc690f3
Fix unintential memory retention in stringfields.

* Fix missing / unreachable calls to __ast_string_field_release_active.
* Reset pool->used to zero when the current pool->active reaches zero.

ASTERISK-24307 #close
Reported by: Etienne Lessard
Tested by: ibercom, Etienne Lessard
Review: https://reviewboard.asterisk.org/r/4114/
........

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

Merged revisions 427381 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 427382 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 427384 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/stringfields.h
main/utils.c