autofs-5.1.9 - fix incorrect call in dev_ioctl_requester()

From: Ian Kent <raven@themaw.net>

Function dev_ioctl_requester() uses alloc_dev_ioctl_path() to allocate
the autofs_dev_ioctl structure so it should use free_dev_ioctl_path()
to free the structure but it uses free_dev_ioctl_open().

This is a cosmetic change now becuase free_dev_ioctl_open() and
free_dev_ioctl_path() do the same thing but may change in the
future.

Signed-off-by: Ian Kent <raven@themaw.net>
---
 CHANGELOG           |    1 +
 lib/dev-ioctl-lib.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG b/CHANGELOG
index 14a31e2a9..f76a9bb31 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -50,6 +50,7 @@
 - dont use alloca for nfsoptions.
 - fix type mismatch in mount_autofs_direct().
 - fix multiply defined proximity.
+- fix incorrect call in dev_ioctl_requester().
 
 02/11/2023 autofs-5.1.9
 - fix kernel mount status notification.
diff --git a/lib/dev-ioctl-lib.c b/lib/dev-ioctl-lib.c
index 14e19ead0..59c52c58b 100644
--- a/lib/dev-ioctl-lib.c
+++ b/lib/dev-ioctl-lib.c
@@ -640,7 +640,7 @@ static int dev_ioctl_requester(unsigned int logopt,
 	err = ioctl(ctl.devfd, AUTOFS_DEV_IOCTL_REQUESTER, param);
 	if (err == -1) {
 		int save_errno = errno;
-		free_dev_ioctl_open(param);
+		free_dev_ioctl_path(param);
 		errno = save_errno;
 		return -1;
 	}
