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

# RtlDestroyHeap(3w)

## NAME

**RtlDestroyHeap** (NTDLL.@)

## SYNOPSIS

HANDLE RtlDestroyHeap\
  (\
   HANDLE *heap*\
  )

## DESCRIPTION

Destroy a Heap created with **[RtlCreateHeap(3w)](/RtlCreateHeap/3w.md)**.

## PARAMS

*heap* **\[In\]**  Heap to destroy.

## RETURNS

**Success:** A **NULL** HANDLE, if *heap* is **NULL** or it was destroyed

**Failure:** The Heap handle, if *heap* is the process *heap*.

## IMPLEMENTATION

Declared in **"winternl.h"**.

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

Debug channel **"heap"**.
