Skip to main content

MpatFree

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Free a Pattern Matching context or a result buffer.

Syntax

void MpatFree(
AIL_ID ContextOrResultPatId //in
)

Description

This function deletes the specified Pattern Matching context (and all its models) or result buffer identifier, and releases any memory associated with it. Note that, to delete individual models in the context, use MpatDefine.

All Pattern Matching contexts or result buffers allocated on a particular system must be freed before the system can be freed, unless M_UNIQUE_ID was specified during allocation.

Parameters

ContextOrResultPatId (in, AIL_ID)

Specifies the identifier of the Pattern Matching context or result buffer to free. These must have been successfully allocated (with MpatAlloc or MpatAllocResult) prior to calling this function.

Copyright © 2026 Zebra Technologies.