]> git.ipfire.org Git - thirdparty/asterisk.git/commit
vector: multiple evaluation of elem in AST_VECTOR_ADD_SORTED.
authorCorey Farrell <git@cfware.com>
Thu, 5 Oct 2017 22:59:06 +0000 (18:59 -0400)
committerCorey Farrell <git@cfware.com>
Fri, 6 Oct 2017 18:39:04 +0000 (13:39 -0500)
commit8bf4be1048c7cd2638ec111c3bd2b2d7953e60c9
tree85967383c615a152962bab40c44c7b21ea7b9091
parent7703ab04438b8c8ea15738621a7434b40c44d219
vector: multiple evaluation of elem in AST_VECTOR_ADD_SORTED.

Use temporary variable to prevent multiple evaluations of elem argument.
This resolves a memory leak in res_pjproject startup.

ASTERISK-27317 #close

Change-Id: Ib960d7f5576f9e1a3c478ecb48995582a574e06d
include/asterisk/vector.h
tests/test_vector.c