From 5b8c1ed0d38c8872440e4b84a67a9e21d9b0c938 Mon Sep 17 00:00:00 2001 From: Corey Farrell Date: Fri, 20 Sep 2019 09:29:01 -0400 Subject: [PATCH] stasis: refcounter.py can incorrectly report skewed objects. It is possible for topic->name to be NULL, this causes the allocation reference to not be logged. Use the name variable instead which has been verified to be a non-empty. Change-Id: I3d0031d03c8356e4808f00cdf2d5428712575883 --- main/stasis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/stasis.c b/main/stasis.c index 77b01a755e..194748175a 100644 --- a/main/stasis.c +++ b/main/stasis.c @@ -514,7 +514,7 @@ static int link_topic_proxy(struct stasis_topic *topic, const char *name, const } proxy = ao2_t_weakproxy_alloc( - sizeof(*proxy) + strlen(name) + 1 + strlen(detail) + 1, NULL, topic->name); + sizeof(*proxy) + strlen(name) + 1 + strlen(detail) + 1, NULL, name); if (!proxy) { ao2_unlock(topic_all);