diff options
| author | Karel Zak <kzak@redhat.com> | 2025-03-12 14:11:49 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2025-03-12 14:11:49 +0100 |
| commit | 6e2127384ba267119311437b233e413e16ef8721 (patch) | |
| tree | d2d0c8e972eece5c7a3c1630a686fbc09d43df74 /libmount/src/hook_loopdev.c | |
| parent | 87c1ea68155b88ccdc07069c267a3121468d72c8 (diff) | |
| download | util-linux-6e2127384ba267119311437b233e413e16ef8721.tar.gz | |
libmount: remove possible leak in mnt_context_guess_srcpath_fstype() [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/hook_loopdev.c')
| -rw-r--r-- | libmount/src/hook_loopdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libmount/src/hook_loopdev.c b/libmount/src/hook_loopdev.c index 4f831e0d88..444d69d6f4 100644 --- a/libmount/src/hook_loopdev.c +++ b/libmount/src/hook_loopdev.c @@ -458,6 +458,7 @@ static int is_loopdev_required(struct libmnt_context *cxt, struct libmnt_optlist rc = mnt_context_guess_srcpath_fstype(cxt, &autotype); if (rc) { + free(autotype);; DBG(CXT, ul_debugobj(cxt, "failed to guess regfile FS type [rc=%d]", rc)); return 0; } |
