Re: [PATCH] Remove leaked resource error from wd_resource_state_is_ok

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

 



Reviewed-by: Jan Friesse <jfriesse@xxxxxxxxxx>

Steven Dake napsal(a):
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 1a6f685..89f31e6 100644
--- a/exec/wd.c
+++ b/exec/wd.c
@@ -222,6 +222,7 @@ static int32_t wd_resource_state_is_ok (struct resource *ref)
 			"last_updated %"PRIu64" ms too late, period:%"PRIu64".",
 			(uint64_t)(my_time/MILLI_2_NANO_SECONDS - ((last_updated + allowed_period) / MILLI_2_NANO_SECONDS)),
 			ref->check_timeout);
+		free(state);
 		return CS_FALSE;
 	}

_______________________________________________
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