--- psiconv/trunk/lib/psiconv/parse_driver.c 2004/02/04 12:19:09 196 +++ psiconv/trunk/lib/psiconv/parse_driver.c 2004/02/26 16:27:43 233 @@ -136,6 +136,7 @@ goto ERROR4; if ((res = psiconv_list_add((*result)->sections,clipart))) goto ERROR5; + free(clipart); } psiconv_free_jumptable_section(table); @@ -146,7 +147,7 @@ ERROR4: for (i = 0; i < psiconv_list_length((*result)->sections); i++) { if (!(clipart = psiconv_list_get((*result)->sections,i))) { - psiconv_error(config,lev+1,off,"Massive memory corruption"); + psiconv_error(config,lev+1,off,"Data structure corruption"); goto ERROR3; } psiconv_free_clipart_section(clipart); @@ -201,6 +202,7 @@ goto ERROR4; if ((res = psiconv_list_add((*result)->sections,paint))) goto ERROR5; + free(paint); } psiconv_free_jumptable_section(table); @@ -211,7 +213,7 @@ ERROR4: for (i = 0; i < psiconv_list_length((*result)->sections); i++) { if (!(paint = psiconv_list_get((*result)->sections,i))) { - psiconv_error(config,lev+1,off,"Massive memory corruption"); + psiconv_error(config,lev+1,off,"Data structure corruption"); goto ERROR3; } psiconv_free_paint_data_section(paint);