You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development for the tcrmw tool, David found a memory leak in the vx_data2d_grib2 library. The read_grib2_record() function allocates an array of unsigned char's for storing the contents of GRIB2 records. However, it fails to deallocate.
The pointer for this memory is passed as an argument to this function, but that isn't necessary. Update the code to declare the pointer locally, allocated, and deallocate before returning.
The text was updated successfully, but these errors were encountered:
During development for the tcrmw tool, David found a memory leak in the vx_data2d_grib2 library. The read_grib2_record() function allocates an array of unsigned char's for storing the contents of GRIB2 records. However, it fails to deallocate.
The pointer for this memory is passed as an argument to this function, but that isn't necessary. Update the code to declare the pointer locally, allocated, and deallocate before returning.
The text was updated successfully, but these errors were encountered: