--- psiconv/trunk/lib/psiconv/parse_word.c 2000/12/27 23:56:18 83 +++ psiconv/trunk/lib/psiconv/parse_word.c 2003/06/16 17:48:39 151 @@ -25,6 +25,10 @@ #include "parse_routines.h" #include "error.h" +#ifdef DMALLOC +#include +#endif + int psiconv_parse_word_status_section(const psiconv_buffer buf, int lev, psiconv_u32 off, int *length, psiconv_word_status_section *result) @@ -270,7 +274,7 @@ if (!(style = malloc(sizeof(*style)))) goto ERROR5; style->hotkey = 0; - if (!(psiconv_list_add((*result)->styles,style))) { + if (psiconv_list_add((*result)->styles,style)) { free(style); goto ERROR5; }