Explorar el 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 hace 14 años
padre
commit
01c63ca17c
Se han modificado 1 ficheros con 1 adiciones y 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;
 		return CS_FALSE;
 	}
 	}
+	free (state);
 
 
 	if (last_updated == 0) {
 	if (last_updated == 0) {
 		/* initial value */
 		/* initial value */