blktrace: Fix memory leaks in error paths
authorBart Van Assche <bvanassche@acm.org>
Sun, 12 Jan 2020 00:07:39 +0000 (16:07 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sun, 12 Jan 2020 02:17:37 +0000 (18:17 -0800)
commit2ba46d1b1a114688ff7be9852ba32d27c6e50188
treeb50a711eff9af6558ac2362b2eaf1f00c6ce70a6
parentc81ab051dd359a598414c04fcb010e959d2d5445
blktrace: Fix memory leaks in error paths

This patch fixes the following Coverity complaint:

CID 183977 (#1 of 1): Resource leak (RESOURCE_LEAK)
17. leaked_storage: Variable str going out of scope leaks the storage it points to.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
blktrace.c