Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Free Resources Allocated by libyt

Table of contents

yt_free

int yt_free();
  • Usage: Free resource allocated by libyt. We should always remember to call this after in situ analysis. Otherwise, we will get memory leakage.
  • Return: YT_SUCCESS or YT_FAIL

Example

if ( yt_free() != YT_SUCCESS ){  
    fprintf( stderr, "ERROR: yt_free() failed!\n" );  
    exit( EXIT_FAILURE );  
}