File Content Extraction 26.2
Filter SDK C Programming Guide

# fpFreeStruct()

This function frees the memory allocated by fpGetMainFileInfo(), fpGetSubFileInfo(), fpGetSubFileMetaData(), and fpExtractSubFile().

## Syntax

    int (pascal *fpFreeStruct) (
        void      *pFile,
        void      *obj);

## Arguments

`pFile` | The identifier of the file. This is a file handle returned from fpOpenFile() or fpOpenFileFromFilterSession().
`obj` | A KVMainFileInfo, KVSubFileInfo, KVSubFileMetaData or KVSubFileExtractInfo obtained through a call to fpGetMainFileInfo(), fpGetSubFileInfo(), fpGetSubFileMetaData(), fpExtractSubFile(), or fpGetExtractInfo().

## Returns

- If the allocated memory is freed, the return value is `KVERR_Success`.
- Otherwise, the return value is an error code.

## Example

The example below frees the memory allocated by `fpGetSubFileInfo()`:

    if ( subFileInfo )
        {
            extractInterface->fpFreeStruct(pFile,subFileInfo);
            subFileInfo = NULL;
        }

Copyright 1997-2026 Open Text
Version 26.2 | Last updated April 2026

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 26.2

Topic Title: fpFreeStruct()