Free Resources Allocated by libyt
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
orYT_FAIL
Example
if ( yt_free() != YT_SUCCESS ){
fprintf( stderr, "ERROR: yt_free() failed!\n" );
exit( EXIT_FAILURE );
}