Skip to content

Commit 0575f08

Browse files
committed
v.1.07.5-RC4
1 parent 31d69b5 commit 0575f08

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

INCHI-1-SRC/INCHI_BASE/src/permutation_util.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@
4949
#include <ctype.h>
5050
#include <locale.h>
5151

52-
#ifndef COMPILE_ANSI_ONLY
53-
#include <conio.h>
54-
#ifndef TARGET_LIB_FOR_WINCHI
55-
#include <windows.h>
56-
#endif
57-
#endif
58-
5952
#include "mode.h"
6053

6154
#if( BUILD_WITH_AMI == 1 && defined( _MSC_VER ) && MSC_AMI == 1 )

INCHI-1-SRC/INCHI_BASE/src/readinch.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,6 @@ int InchiToInpAtom( INCHI_IOSTREAM *inp_file,
886886
num_atoms = INCHI_INP_ERROR_RET; /* error */
887887
*err = INCHI_INP_ERROR_ERR;
888888
TREAT_ERR(*err, 0, "Wrong number of atoms");
889-
inchi_free(atom); /* djb-rwth: fixing coverity CID #499615 */
890889
goto bypass_end_of_INChI_plain;
891890
}
892891
}
@@ -907,6 +906,11 @@ int InchiToInpAtom( INCHI_IOSTREAM *inp_file,
907906
num_atoms = INCHI_INP_ERROR_RET; /* error */
908907
*err = INCHI_INP_ERROR_ERR;
909908
TREAT_ERR(*err, 0, "Missing bonds data");
909+
if (atom) /* djb-rwth: fixing coverity CID #499615 */
910+
{
911+
inchi_free(atom);
912+
atom = NULL;
913+
}
910914
goto bypass_end_of_INChI_plain;
911915
}
912916
else

0 commit comments

Comments
 (0)