mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
Merged revisions 188470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r188470 | mmichelson | 2009-04-14 18:28:13 -0500 (Tue, 14 Apr 2009) | 3 lines Fix a couple of queue member reference leaks. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@188471 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4246,7 +4246,7 @@ static int set_member_penalty(char *queuename, char *interface, int penalty)
|
|||||||
"Location: %s\r\n"
|
"Location: %s\r\n"
|
||||||
"Penalty: %d\r\n",
|
"Penalty: %d\r\n",
|
||||||
q->name, mem->interface, penalty);
|
q->name, mem->interface, penalty);
|
||||||
|
ao2_ref(mem, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ao2_unlock(q);
|
ao2_unlock(q);
|
||||||
@@ -4280,6 +4280,7 @@ static int get_member_penalty(char *queuename, char *interface)
|
|||||||
ao2_lock(q);
|
ao2_lock(q);
|
||||||
if ((mem = interface_exists(q, interface))) {
|
if ((mem = interface_exists(q, interface))) {
|
||||||
penalty = mem->penalty;
|
penalty = mem->penalty;
|
||||||
|
ao2_ref(mem, -1);
|
||||||
ao2_unlock(q);
|
ao2_unlock(q);
|
||||||
queue_unref(q);
|
queue_unref(q);
|
||||||
return penalty;
|
return penalty;
|
||||||
|
|||||||
Reference in New Issue
Block a user