Coverity-id: 647264
Signed-off-by: Gao Xiang <[email protected]>
---
 mount/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mount/main.c b/mount/main.c
index 48418275b2d0..ffe718a0a90f 100644
--- a/mount/main.c
+++ b/mount/main.c
@@ -552,6 +552,7 @@ static int erofsmount_fuse(const char *source, const char 
*mountpoint,
 
        /* execvp() doesn't work for external mount helpers here */
        err = execl("/bin/sh", "/bin/sh", "-c", command, NULL);
+       free(command);
        if (err < 0) {
                perror("failed to execute /bin/sh");
                return -errno;
-- 
2.43.5


Reply via email to