[Asterisk-code-review] res sorcery realtime: Fix leak of sorcery object type. (asterisk[master])

Mark Michelson asteriskteam at digium.com
Mon Jun 29 14:34:58 CDT 2015


Mark Michelson has uploaded a new patch set (#2).

Change subject: res_sorcery_realtime: Fix leak of sorcery object type.
......................................................................

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
---
M res/res_sorcery_realtime.c
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/44/744/2
-- 
To view, visit https://gerrit.asterisk.org/744
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I625c3b50eee4576670b7eeb013c81ad043b4b4f8
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>



More information about the asterisk-code-review mailing list