From 92d9ee19925a348d57f6eb6565837bb13e40097c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 1 Aug 2014 21:42:18 +0200 Subject: [PATCH] Fix memory leak --- libhpcs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhpcs.c b/libhpcs.c index f238602..d972f43 100644 --- a/libhpcs.c +++ b/libhpcs.c @@ -223,6 +223,8 @@ static enum HPCS_ParseCode autodetect_file_type(FILE* datafile, enum HPCS_FileTy } else *file_type = HPCS_TYPE_UNKNOWN; + free(type_id); + return PARSE_OK; } -- 2.43.5