diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2013-07-03 14:34:12 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2013-07-03 14:34:12 (GMT) |
commit | a0ccc0f0faf4c12c0ef81777f6d9ae5e1a1107f9 (patch) | |
tree | 5a3b509055a929ca1b7389d7fd180131bf66cc6e /hl/src/H5LT.c | |
parent | 259abfa83970f7da997e2b95c8357fd85b800bbe (diff) | |
download | hdf5-a0ccc0f0faf4c12c0ef81777f6d9ae5e1a1107f9.zip hdf5-a0ccc0f0faf4c12c0ef81777f6d9ae5e1a1107f9.tar.gz hdf5-a0ccc0f0faf4c12c0ef81777f6d9ae5e1a1107f9.tar.bz2 |
[svn-r23860] HDFFV-8322: reduce valgrind memory leaks for ex_image2
Tested:" local linux
Diffstat (limited to 'hl/src/H5LT.c')
-rw-r--r-- | hl/src/H5LT.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hl/src/H5LT.c b/hl/src/H5LT.c index 88f8de4..b2c8949 100644 --- a/hl/src/H5LT.c +++ b/hl/src/H5LT.c @@ -2175,8 +2175,10 @@ hid_t H5LTtext_to_dtype(const char *text, H5LT_lang_t lang_type) input_len = HDstrlen(text); myinput = HDstrdup(text); - if((type_id = H5LTyyparse()) < 0) + if((type_id = H5LTyyparse()) < 0) { + HDfree(myinput); goto out; + } HDfree(myinput); input_len = 0; |