瀏覽代碼

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 14 年之前
父節點
當前提交
01c63ca17c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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 */