]> git.ipfire.org Git - thirdparty/asterisk.git/commit
endpoint snapshot: avoid second cleanup on alloc failure 83/1183/1
authorScott Griepentrog <scott@griepentrog.com>
Fri, 4 Sep 2015 14:26:46 +0000 (09:26 -0500)
committerScott Griepentrog <scott@griepentrog.com>
Fri, 4 Sep 2015 14:26:46 +0000 (09:26 -0500)
commit7691035312ee649b4d949cace139eddb6e6e49b6
tree232624a0f4bc6e93d75544472713ea2099735de9
parentc15d8cc0ed110ace9e85cce0857524358139c075
endpoint snapshot: avoid second cleanup on alloc failure

In ast_endpoint_snapshot_create(), a failure to init the
string fields results in two attempts to ao2_cleanup the
same pointer.  Removed RAII_VAR to eliminate problem.

ASTERISK-25375 #close
Reported by: Scott Griepentrog

Change-Id: If4d9dfb1bbe3836b623642ec690b6d49b25e8979
main/endpoints.c