Skip to content

Commit

Permalink
Fix resource leak
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMeans committed Mar 3, 2020
1 parent a3294b9 commit 57da17d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/c/nitf/source/Reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,7 @@ NITFAPI(nitf_Version) nitf_Reader_getNITFVersion(const char* fileName)
if (io)
{
version = nitf_Reader_getNITFVersionIO(io);
nitf_IOInterface_close(io, &error);
nitf_IOInterface_destruct(&io);
}

Expand Down

0 comments on commit 57da17d

Please sign in to comment.