summaryrefslogtreecommitdiffstats
path: root/msg.h
diff options
context:
space:
mode:
authorAdam Kwolek <adam.kwolek@intel.com>2011-03-18 02:32:16 +0100
committerNeilBrown <neilb@suse.de>2011-03-18 02:32:16 +0100
commit983fff45a163e35f1a4d309b39ee9a0cbbc2195a (patch)
tree9117d15f814d49f4a0900864628f61e45e4f5c0d /msg.h
parentManage: fix the mess I made in earlier patch. (diff)
downloadmdadm-983fff45a163e35f1a4d309b39ee9a0cbbc2195a.tar.xz
mdadm-983fff45a163e35f1a4d309b39ee9a0cbbc2195a.zip
FIX: ping_monitor() usage causes memory leaks
When for ping_monitor() input devnum2devname() is used, received string pointer should be passed to free() for memory release. It is not made in several places. This use case should have function to avoid memory leak. Signed-off-by: Adam Kwolek <adam.kwolek@intel.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to '')
-rw-r--r--msg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/msg.h b/msg.h
index 91a77987..c6d037d9 100644
--- a/msg.h
+++ b/msg.h
@@ -27,6 +27,7 @@ extern int ack(int fd, int tmo);
extern int wait_reply(int fd, int tmo);
extern int connect_monitor(char *devname);
extern int ping_monitor(char *devname);
+extern int ping_monitor_by_id(int devnum);
extern int block_subarray(struct mdinfo *sra);
extern int unblock_subarray(struct mdinfo *sra, const int unfreeze);
extern int block_monitor(char *container, const int freeze);