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>
Wed, 11 Sep 2019 17:34:53 +0000 (13:34 -0400)
commit8ac478d0ad55edd322b2a4c6931e452d809bf5f3
tree59a76db793c8e829471cbc4a2545d550e25a197a
parent78fc586baa98ae77506c34eac8bb980a7d3cc901
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.026254 seconds and 5 git commands to generate.