Fix minor memory leak.
This commit is contained in:
parent
2d4b50b61e
commit
b93ca95c4f
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user