[PATCH] Free state variable allocated in wd_resource_state_is_ok

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

 



Signed-off-by: Steven Dake <sdake@xxxxxxxxxx>
---
 exec/wd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/exec/wd.c b/exec/wd.c
index 89f31e6..f3b7878 100644
--- a/exec/wd.c
+++ b/exec/wd.c
@@ -203,6 +203,7 @@ static int32_t wd_resource_state_is_ok (struct resource *ref)
 		*/
 		return CS_FALSE;
 	}
+	free (state);
 
 	if (last_updated == 0) {
 		/* initial value */
-- 
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