diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2011-03-11 15:10:16 +0000 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2011-03-11 15:10:16 +0000 |
commit | ff4479414c6f2e6eb29957d1cb0f486122394f9f (patch) | |
tree | cab1a45fe05425286ab92ecc6aaf28f8fa3905c9 /lib/format1 | |
parent | e8d4946ec784e38454ed25eeff7846b7524414d4 (diff) | |
download | lvm2-ff4479414c6f2e6eb29957d1cb0f486122394f9f.tar.gz lvm2-ff4479414c6f2e6eb29957d1cb0f486122394f9f.tar.xz lvm2-ff4479414c6f2e6eb29957d1cb0f486122394f9f.zip |
Use format instance mempool where possible and adequate.
Diffstat (limited to 'lib/format1')
-rw-r--r-- | lib/format1/format1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/format1/format1.c b/lib/format1/format1.c index d98da691..4a91aac7 100644 --- a/lib/format1/format1.c +++ b/lib/format1/format1.c @@ -508,10 +508,9 @@ static struct format_instance *_format1_create_instance(const struct format_type return_NULL; /* Define a NULL metadata area */ - if (!(mda = dm_pool_zalloc(fmt->cmd->mem, sizeof(*mda)))) { + if (!(mda = dm_pool_zalloc(fid->mem, sizeof(*mda)))) { log_error("Unable to allocate metadata area structure " "for lvm1 format"); - dm_pool_free(fmt->cmd->mem, fid); goto bad; } |