Clean-up: set stream's channel pointer to NULL after releasing ref
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 24 Aug 2019 23:58:48 +0000 (16:58 -0700)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 24 Aug 2019 23:58:48 +0000 (16:58 -0700)
commita6ef8ee6a852f9fa6394408fcc8d4d49891852d9
tree581fba46afc739aacc4c672d6c9352634a11bab4
parentb6921a1724c571a787e3600c5dae4d9efeef0290
Clean-up: set stream's channel pointer to NULL after releasing ref

A stream's "chan" pointer to its parent channel remains set after
the reference to the channel has been released. This can lead to
accidental uses after the release of the channel through the
stream object.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c
This page took 0.024833 seconds and 4 git commands to generate.