Fix a possible memory leak in BlockDevices.cpp.
Merge pull request #3072 from lioncash/master

Fix a possible memory leak in BlockDevices.cpp.