diff options
author | pjd <pjd@FreeBSD.org> | 2013-02-10 15:56:47 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2013-02-10 15:56:47 +0000 |
commit | 385da813c5decb364f92b91c659a781232ec9490 (patch) | |
tree | 0241336d476a8ca7af805f13f93f984c9551aba1 /sbin/geom/class | |
parent | 861349429a353a28747de5d6b9ea77b67d3eab57 (diff) | |
download | FreeBSD-src-385da813c5decb364f92b91c659a781232ec9490.zip FreeBSD-src-385da813c5decb364f92b91c659a781232ec9490.tar.gz |
Fix minor memory leak.
Diffstat (limited to 'sbin/geom/class')
-rw-r--r-- | sbin/geom/class/eli/geom_eli.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/geom/class/eli/geom_eli.c b/sbin/geom/class/eli/geom_eli.c index 14f564e..1ed72b11 100644 --- a/sbin/geom/class/eli/geom_eli.c +++ b/sbin/geom/class/eli/geom_eli.c @@ -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)); |