pmemblk: Fix a memory leak
authorBart Van Assche <bvanassche@acm.org>
Sat, 18 Jan 2020 05:08:10 +0000 (21:08 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sat, 18 Jan 2020 06:04:39 +0000 (22:04 -0800)
commite9c7be0e32e6ddaf40f73fd0ea1977a295842aec
treeabf9c78875d487588b435f288fff685a7e1d7643
parent655ca10a708318bb22023146fe3dc338d25b777d
pmemblk: Fix a memory leak

This patch fixes the following Coverity complaint:

CID 169312 (#1 of 1): Resource leak (RESOURCE_LEAK)
5. leaked_storage: Variable path going out of scope leaks the storage it points to.

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