Explorar o código

Free state variable allocated in wd_resource_state_is_ok

Signed-off-by: Steven Dake <sdake@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Steven Dake %!s(int64=14) %!d(string=hai) anos
pai
achega
01c63ca17c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      exec/wd.c

+ 1 - 0
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 */