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
16.7
Corey Farrell 6 years ago
parent a687c7919d
commit 5b8c1ed0d3
No known key found for this signature in database
GPG Key ID: D1B6E98EB07F7F6C

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

Loading…
Cancel
Save