From b5798ba95aa12f19e737cc373ea2acfe04e3381b Mon Sep 17 00:00:00 2001 From: Sergej Schumilo Date: Thu, 20 Jan 2022 03:29:17 +0100 Subject: [PATCH] add missing free() call in interface.c --- nyx/interface.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nyx/interface.c b/nyx/interface.c index 96b5f7f71f..56ffc54d7c 100644 --- a/nyx/interface.c +++ b/nyx/interface.c @@ -147,7 +147,7 @@ static int nyx_create_payload_buffer(nyx_interface_state *s, uint64_t buffer_siz void * ptr; int fd; struct stat st; - + fd = open(file, O_CREAT|O_RDWR, S_IRWXU|S_IRWXG|S_IRWXO); assert(ftruncate(fd, buffer_size) == 0); stat(file, &st); @@ -219,6 +219,7 @@ static bool verify_workdir_state(nyx_interface_state *s, Error **errp){ if (!folder_exits(tmp)){ mkdir(tmp, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); } + free(tmp); assert(asprintf(&tmp, "%s/interface_%d", workdir, id) != -1); if (!file_exits(tmp)){