1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-10 05:18:36 +03:00

Destroy toolcontext on exit in clvmd (fixes memory pool leaks).

This commit is contained in:
Milan Broz 2009-06-15 12:15:23 +00:00
parent 87c63e995b
commit 649cd608c1
4 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.48 -
===============================
Destroy toolcontext on exit in clvmd (fixes memory pool leaks).
Fix lvconvert to not poll mirror if no conversion in progress.
Fix memory leaks in toolcontext error path.
Re-instate partial activation support in clustered mode. (2.02.40)

View File

@ -481,6 +481,8 @@ int main(int argc, char *argv[])
/* Do some work */
main_loop(local_sock, cmd_timeout);
destroy_lvm();
return 0;
}

View File

@ -811,3 +811,10 @@ int init_lvm(int using_gulm)
return 1;
}
void destroy_lvm(void)
{
if (cmd)
destroy_toolcontext(cmd);
cmd = NULL;
}

View File

@ -28,6 +28,7 @@ extern int post_lock_lv(unsigned char lock_cmd, unsigned char lock_flags,
extern int do_check_lvm1(const char *vgname);
extern int do_refresh_cache(void);
extern int init_lvm(int using_gulm);
extern void destroy_lvm(void);
extern void init_lvhash(void);
extern void destroy_lvhash(void);
extern void lvm_do_backup(const char *vgname);