summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJafar Al-Gharaibeh <Jafaral@users.noreply.github.com>2017-08-18 00:16:38 -0500
committerGitHub <noreply@github.com>2017-08-18 00:16:38 -0500
commitf887261b92fd4416f7ceb9ffe388a6eb55b7721a (patch)
tree0d837e1c74918277bd6ed80e49e91d07b4235831
parentfd178a6a04f147071b7b129e1e522824a67fabdd (diff)
parenta5d4c69d6a6a6c2bd23e4f1af97a7ef024973210 (diff)
Merge pull request #1003 from donaldsharp/pim_mem_leak
pimd: Fix memory leak on failure case
-rw-r--r--pimd/pim_upstream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c
index 751611479e..1fc952fdf8 100644
--- a/pimd/pim_upstream.c
+++ b/pimd/pim_upstream.c
@@ -698,6 +698,8 @@ static struct pim_upstream *pim_upstream_new(struct pim_instance *pim,
if (up->sources)
list_delete(up->sources);
+ list_delete(up->ifchannels);
+
hash_release(pim->upstream_hash, up);
XFREE(MTYPE_PIM_UPSTREAM, up);
return NULL;