Skip to content

Commit 65c6600

Browse files
committed
fix memory leak in hecdss.c
1 parent 9e98bba commit 65c6600

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

heclib/hecdss/hecdss.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ HECDSS_API int hec_dss_open_ex(const char *filename, dss_file **dss,
186186
return -1;
187187
// readonly can only be from 0 to 4
188188
if (access < 0 || access > 4) {
189+
free(f);
189190
return -1;
190191
}
191192

0 commit comments

Comments
 (0)