Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_free.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_free.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_free.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_free.html on line 8

ado_free()

Deallocate a block of memory

Synopsis:

#include <audio_driver.h>

void ado_free( void *ptr );

Arguments:

ptr
A pointer to the block of memory to be freed.

Description:

The ado_free() macro deallocates the given block of memory that you allocated by calling ado_calloc(), ado_malloc(), ado_realloc(), or ado_strdup().

The ado_free() macro is defined as ado_free_debug(), or free(), if ADO_DEBUG is defined; see Debugging an audio driver in the Organization of a Driver chapter.

The advantage of using the debug variants of the memory functions is that they track the memory allocated; see ado_memory_dump(). The debug variant of ado_free() stops this tracking for the given block.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread Yes

See also:

ado_calloc(), ado_malloc(), ado_memory_dump(), ado_realloc(), ado_strdup()

free() in the QNX Library Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_free.html on line 117

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_free.html on line 117