mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-24 14:50:34 +03:00
Instrument code that pointer are already released
Set pointers to NULL since on the function exit they are no longer valid.
This commit is contained in:
parent
a1f42a8e88
commit
4e9ef2eea3
@ -757,11 +757,15 @@ static int _text_vg_export(struct formatter *f,
|
||||
r = 1;
|
||||
|
||||
out:
|
||||
if (f->mem)
|
||||
if (f->mem) {
|
||||
dm_pool_destroy(f->mem);
|
||||
f->mem = NULL;
|
||||
}
|
||||
|
||||
if (f->pv_names)
|
||||
if (f->pv_names) {
|
||||
dm_hash_destroy(f->pv_names);
|
||||
f->pv_names = NULL;
|
||||
}
|
||||
|
||||
return r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user