NCEPLIBS-g2c  1.8.0
g2_free.c File Reference

Free up memory that was allocated for struct gribfield. More...

#include <stdlib.h>
#include "grib2_int.h"

Go to the source code of this file.

Functions

void g2_free (gribfield *gfld)
 This routine frees up memory that was allocated for struct gribfield. More...
 

Detailed Description

Free up memory that was allocated for struct gribfield.

Author
Stephen Gilbeert
Date
2002-10-28

Definition in file g2_free.c.

Function Documentation

◆ g2_free()

void g2_free ( gribfield gfld)

This routine frees up memory that was allocated for struct gribfield.

Parameters
gfldpointer to gribfield structure (defined in include file grib2.h) returned from routine g2_getfld().
Note
This routine must be called to free up memory used by the decode routine, g2_getfld(), when user no longer needs to reference this data.
Author
Stephen Gilbeert
Date
2002-10-28

Definition at line 24 of file g2_free.c.

References gribfield::bmap, gribfield::coord_list, gribfield::fld, gribfield::idrtmpl, gribfield::idsect, gribfield::igdtmpl, gribfield::ipdtmpl, gribfield::list_opt, and gribfield::local.

Referenced by g2_getfld().