From: Corey Farrell Date: Thu, 6 Nov 2014 09:22:28 +0000 (+0000) Subject: res_hep: fix major leak that occurs when config is missing or enabled=no. X-Git-Tag: 12.8.0-rc1~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=099b142a27d22d8da64bf79a7838afc7e0fde5af;p=thirdparty%2Fasterisk.git 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/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@427400 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_hep.c b/res/res_hep.c index db5b0e35b8..295969443e 100644 --- a/res/res_hep.c +++ b/res/res_hep.c @@ -533,6 +533,7 @@ int hepv3_send_packet(struct hepv3_capture_info *capture_info) int res; if (!config || !config->general->enabled) { + ao2_ref(capture_info, -1); return 0; }