Fix minor memory leak.

This commit is contained in:
Pawel Jakub Dawidek 2013-02-10 15:56:47 +00:00
parent 2d4b50b61e
commit b93ca95c4f

View File

@ -1255,6 +1255,7 @@ eli_trash_metadata(struct gctl_req *req, const char *prov, int fd, off_t offset)
}
(void)g_flush(fd);
} while (--overwrites > 0);
free(sector);
if (error != 0) {
gctl_error(req, "Cannot trash metadata on provider %s: %s.",
prov, strerror(error));