]> 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:38:51 +0000 (13:38 -0500)
commitbaf331f4bccbdd02e65b78db4788a8543117731d
treede1dac4f3c85fd8537cab729d409f2358db3dae9
parentba37dd65d3784196279c3dfe6ed22ed41fa85342
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