From b58c203bc7c9c10b0460a6431f71de4ac35bd693 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Fri, 5 Jun 2020 12:59:05 +0200 Subject: [PATCH] lxcfs: free opts on lxcfs binary exit Signed-off-by: Christian Brauner --- src/lxcfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxcfs.c b/src/lxcfs.c index ed0592a..a6b4583 100644 --- a/src/lxcfs.c +++ b/src/lxcfs.c @@ -1198,6 +1198,7 @@ out: dlclose(dlopen_handle); if (pidfile) unlink(pidfile); + free(opts); close_prot_errno_disarm(pidfile_fd); exit(ret); } -- 2.39.5