mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
res_hep: fix major leak that occurs when config is missing or enabled=no.
Add missing unreference in hepv3_send_packet. ASTERISK-24491 #close Reported by: Zane Conkle Tested by: Zane Conkle Review: https://reviewboard.asterisk.org/r/4150/ ........ Merged revisions 427400 from http://svn.asterisk.org/svn/asterisk/branches/12 ........ Merged revisions 427405 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@427408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -532,6 +532,7 @@ int hepv3_send_packet(struct hepv3_capture_info *capture_info)
|
|||||||
int res;
|
int res;
|
||||||
|
|
||||||
if (!config || !config->general->enabled) {
|
if (!config || !config->general->enabled) {
|
||||||
|
ao2_ref(capture_info, -1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user