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
This commit is contained in:
Corey Farrell 2019-09-20 09:29:01 -04:00
parent a687c7919d
commit 5b8c1ed0d3
No known key found for this signature in database
GPG Key ID: D1B6E98EB07F7F6C
1 changed files with 1 additions and 1 deletions

View File

@ -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);