Close ctrl device in error path

This commit is contained in:
Michal Mielewczyk 2019-06-11 04:57:44 -04:00
parent a9eb0ee705
commit 94df75cdeb

View File

@ -1171,6 +1171,7 @@ int cache_status(unsigned int cache_id, unsigned int core_id, int io_class_id,
if (create_pipe_pair(intermediate_file)) {
cas_printf(LOG_ERR,"Failed to create unidirectional pipe.\n");
close(ctrl_fd);
return FAILURE;
}