[PATCH 2/2] icmap: don't leak memory when changing ro/rw status on a key

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Fabio M. Di Nitto" <fdinitto@xxxxxxxxxx>

Signed-off-by: Fabio M. Di Nitto <fdinitto@xxxxxxxxxx>
---
 exec/icmap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/exec/icmap.c b/exec/icmap.c
index 2743959..eb9f0c9 100644
--- a/exec/icmap.c
+++ b/exec/icmap.c
@@ -950,6 +950,7 @@ cs_error_t icmap_set_ro_access(const char *key_name, int prefix, int ro_access)
 				return (CS_ERR_EXIST);
 			} else {
 				list_del(&icmap_ro_ai->list);
+				free(icmap_ro_ai->key_name);
 				free(icmap_ro_ai);
 
 				return (CS_OK);
-- 
1.7.7.6

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux