]> git.ipfire.org Git - thirdparty/asterisk.git/commit
fix a flaw in the ast_string_field_build() family of API calls; these functions made...
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 16 Feb 2009 21:10:38 +0000 (21:10 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 16 Feb 2009 21:10:38 +0000 (21:10 +0000)
commit1b5b3efcae0c23a872777b8135d91ec8b51a065f
treede57f4686ff4467ee70216396596b01677454e70
parent22734e39dc98b673aeef2c352ef301b0eea1af97
fix a flaw in the ast_string_field_build() family of API calls; these functions made no attempt to reuse the space already allocated to a field, so every time the field was written it would allocate new space, leading to what appeared to be a memory leak.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@176216 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/utils.c