Fix minor memory leak.
This commit is contained in:
parent
861349429a
commit
385da813c5
@ -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