Commit 9baa57bd by Serge Hallyn

coverity: closedir on error path

parent dab75acc
......@@ -2538,6 +2538,10 @@ out_free:
lxcsnap_free(&snaps[i]);
free(snaps);
}
process_lock();
if (closedir(dir))
WARN("failed to close directory");
process_unlock();
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment