ft contains integers and ft itself was just malloced. Do not corrupt the
heap...
---
 filter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filter.c b/filter.c
index eb6e778..2ea5a2d 100644
--- a/filter.c
+++ b/filter.c
@@ -2647,7 +2647,7 @@ parse_custom_format(char *s, char *fmt_string, enum 
field_types *ft)
  cannotparse:
        fprintf(stderr, _("%s: invalid format, index %ld\n"), __FUNCTION__, 
(start - s));
        free(fmt_string);
-       while(*ft) free(ft--);
+       free(ft);
        exit(EXIT_FAILURE);
 }
 
-- 
2.3.0


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Abook-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/abook-devel

Reply via email to