From cf6d0cf29abb5abf26e649c9aa43c73fbd63479c Mon Sep 17 00:00:00 2001 From: Gollu Appalanaidu Date: Fri, 12 Mar 2021 00:15:05 +0530 Subject: [PATCH] nvme: fix dsm and copy commands free up buffers In DSM and Copy Commands buffers which dyamically allocated not freed, fixing that. Signed-off-by: Gollu Appalanaidu --- nvme.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvme.c b/nvme.c index e8e66d20..055bf4df 100644 --- a/nvme.c +++ b/nvme.c @@ -4138,6 +4138,8 @@ static int dsm(int argc, char **argv, struct command *cmd, struct plugin *plugin else printf("NVMe DSM: success\n"); + free(dsm); + close_fd: close(fd); ret: @@ -4272,6 +4274,8 @@ static int copy(int argc, char **argv, struct command *cmd, struct plugin *plugi else printf("NVMe Copy: success\n"); + free(copy); + close_fd: close(fd); ret: -- 2.50.1