From e159b0c5285a46e5f192e856bcb3db25203f3373 Mon Sep 17 00:00:00 2001 From: Packit Bot Date: May 04 2021 22:13:47 +0000 Subject: Apply patch autofs-5.1.7-add-missing-free-in-handle_mounts.patch patch_name: autofs-5.1.7-add-missing-free-in-handle_mounts.patch present_in_specfile: true --- diff --git a/CHANGELOG b/CHANGELOG index 1469bbb..1f281cc 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -50,6 +50,7 @@ - check for offset with no mount location. - remove mounts_mutex. - remove unused variable from get_exports(). +- add missing free in handle_mounts(). xx/xx/2018 autofs-5.1.5 - fix flag file permission. diff --git a/daemon/automount.c b/daemon/automount.c index d01a846..06936ce 100644 --- a/daemon/automount.c +++ b/daemon/automount.c @@ -1917,6 +1917,8 @@ void *handle_mounts(void *arg) status = pthread_mutex_lock(&suc->mutex); if (status) { logerr("failed to lock startup condition mutex!"); + if (root) + free(root); fatal(status); }