diff options
author | Adam Kwolek <adam.kwolek@intel.com> | 2011-03-18 02:32:16 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-03-18 02:32:16 +0100 |
commit | 983fff45a163e35f1a4d309b39ee9a0cbbc2195a (patch) | |
tree | 9117d15f814d49f4a0900864628f61e45e4f5c0d /msg.h | |
parent | Manage: fix the mess I made in earlier patch. (diff) | |
download | mdadm-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |