Invalid arguments to add_enckey will leak the "arg" allocation, so fix that. Fixes: ba71de04 ("xfs_io/encrypt: add 'add_enckey' command") Fixes-coverity-id: 1454644 Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> --- diff --git a/io/encrypt.c b/io/encrypt.c index 17d61cfb..c6a4e190 100644 --- a/io/encrypt.c +++ b/io/encrypt.c @@ -696,6 +696,7 @@ add_enckey_f(int argc, char **argv) goto out; break; default: + free(arg); return command_usage(&add_enckey_cmd); } }