diff --git a/src/mount/mount.ceph.c b/src/mount/mount.ceph.c index ab96970c312d3..5ead9313b7d4c 100644 --- a/src/mount/mount.ceph.c +++ b/src/mount/mount.ceph.c @@ -171,6 +171,7 @@ static char *parse_options(const char *data, int *filesys_flags) } else if (strncmp(data, "secret", 6) == 0) { if (!value || !*value) { printf("mount option secret requires a value.\n"); + free(saw_name); return NULL; }