Skip to content
Snippets Groups Projects
Commit ca608d25 authored by Corey Farrell's avatar Corey Farrell
Browse files

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
parent e79a3b42
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment