Fix: oom error check, realloc oom leak
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 26 Nov 2014 17:30:18 +0000 (12:30 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 27 Nov 2014 17:54:29 +0000 (12:54 -0500)
commit466b49a201f57cddbf37757920d7ab2c2c82cc93
tree53ec9d619dfe408405e15b38da2e416ebde00692
parentb9b693fc170ccf872f73270b7969bc2fce6e3ac0
Fix: oom error check, realloc oom leak

print_exclusions can return a NULL pointer on OOM, should be checked.
Also, realloc always need to store result in a different variable than
its input in case it fails (and its returned pointer needs to be checked
for NULL).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/enable_events.c
This page took 0.027395 seconds and 4 git commands to generate.