Tests: fix: leak caused by misuse of realloc in multi-lib-test
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 11 Sep 2019 17:30:18 +0000 (13:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Sep 2019 19:31:48 +0000 (15:31 -0400)
commit5c0fcac1950bdfa9a2c3f84917dd9be056f4bced
treedd7adcb3fcf6a15b8e32b59fd5a31a5bc15c8bf4
parentd4a4b1fbecaac7cdc750982a9c702a72f280d4c2
Tests: fix: leak caused by misuse of realloc in multi-lib-test

realloc() can return NULL, in which case 'libraries' will never
be free'd in the case where the reallocation happens outside of
the while()'s first iteration.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/ust/multi-lib/multi-lib-test.c
This page took 0.025083 seconds and 4 git commands to generate.