[asterisk-commits] res pjsip pubsub.c: Fix off-nominal memory leak. (asterisk[master])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Sep 10 16:43:23 CDT 2015
Matt Jordan has submitted this change and it was merged.
Change subject: res_pjsip_pubsub.c: Fix off-nominal memory leak.
......................................................................
res_pjsip_pubsub.c: Fix off-nominal memory leak.
Fix off-nominal visited vector leak in build_resource_tree().
Change-Id: If0399c7941c9c0b1038bcfb7b9a371760977831c
---
M res/res_pjsip_pubsub.c
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Mark Michelson: Looks good to me, approved
Anonymous Coward #1000019: Verified
Jonathan Rose: Looks good to me, but someone else must approve
diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c
index 3af33a1..5997640 100644
--- a/res/res_pjsip_pubsub.c
+++ b/res/res_pjsip_pubsub.c
@@ -982,6 +982,7 @@
tree->root = tree_node_alloc(resource, &visited, list->full_state);
if (!tree->root) {
+ AST_VECTOR_FREE(&visited);
return 500;
}
--
To view, visit https://gerrit.asterisk.org/1250
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: If0399c7941c9c0b1038bcfb7b9a371760977831c
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Jonathan Rose <jrose at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
More information about the asterisk-commits
mailing list