]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_realtime: Fix leak of sorcery object type. 45/745/2
authorMark Michelson <mmichelson@digium.com>
Mon, 29 Jun 2015 17:45:02 +0000 (12:45 -0500)
committerMark Michelson <mmichelson@digium.com>
Mon, 29 Jun 2015 19:35:08 +0000 (14:35 -0500)
commit156395e743189649280066c1497292bb97ed022d
tree49c4b13f57903c80cbed14983226288f98fc810c
parentbfa5d38a1b49670f744cc1dc0bb91a1bca26691e
res_sorcery_realtime: Fix leak of sorcery object type.

This prevents a leak of a sorcery object type when realtime sorcery
objects are retrieved by fields or when multiple objects are retrieved.

The extent of this leak is that sorcery object types would be leaked.
These are allocated whenever an object type is registered with sorcery,
meaning that on module shutdown, these objects would be leaked. This
could be problematic if many reloads were performed, but it is not as
severe as if every sorcery object retrieved from realtime were being
leaked.

ASTERISK-25165 #close
Reported by Corey Farrell

Change-Id: I625c3b50eee4576670b7eeb013c81ad043b4b4f8
res/res_sorcery_realtime.c