From 89ffe1d826d2a4893f4c13c2cb77d8d0a5b7f9bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Mon, 30 Jun 2014 01:20:43 +0200 Subject: [PATCH] Fix memory leak in autodetect_file_type() --- libhpcs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libhpcs.c b/libhpcs.c index 416f810..e6f4e27 100644 --- a/libhpcs.c +++ b/libhpcs.c @@ -178,6 +178,7 @@ static enum HPCS_ParseCode autodetect_file_type(FILE* datafile, enum HPCS_File_T else *file_type = HPCS_TYPE_UNKNOWN; + free(type_id); return PARSE_OK; } -- 2.43.5