---
name: "GlobalFree"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GlobalFree"
---

# GlobalFree(3w)

## NAME

**GlobalFree** (KERNEL32.@)

## SYNOPSIS

HGLOBAL GlobalFree\
  (\
   HGLOBAL *hmem*\
  )

## DESCRIPTION

Free a global memory object.

## PARAMS

*hmem* **\[In\]**  Handle of the global memory object.

## RETURNS

**Success:** **NULL**

**Failure:** The provided handle.

## NOTES

When the handle is invalid, last error is set to **ERROR\_INVALID\_HANDLE**

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/heap.c"**.

Debug channel **"heap"**.
