summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-03-17 18:22:13 +0100
committerGitHub <[email protected]>2022-03-17 10:22:13 -0700
commit0bebcbcf5e33e61ed146edef4f91b5f621512a8f (patch)
tree5573d28d31f8162bf51771b6672db70335e2201c /lib
parent7b215d93bcc0a72d7020ccc050c64f39aa7f2be8 (diff)
get_key_material_https: removed bogus free() call
The get_key_material_https() function error code path had a bogus free() call, either resulting in double-free or free() of undefined pointer. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ahelenia Ziemia<C5><84>ska <[email protected]> Co-authored-by: Harry Sintonen <[email protected]> Signed-off-by: Harry Sintonen <[email protected]> Closes #13198
Diffstat (limited to 'lib')
-rw-r--r--lib/libzfs/libzfs_crypto.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libzfs/libzfs_crypto.c b/lib/libzfs/libzfs_crypto.c
index 644dd2685..f77becd6a 100644
--- a/lib/libzfs/libzfs_crypto.c
+++ b/lib/libzfs/libzfs_crypto.c
@@ -606,7 +606,6 @@ get_key_material_https(libzfs_handle_t *hdl, const char *uri,
kfdok:
if ((key = fdopen(kfd, "r+")) == NULL) {
ret = errno;
- free(path);
(void) close(kfd);
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN,
"Couldn't reopen temporary file: %s"), strerror(ret));