From: Michal MalĂ˝ Date: Sun, 29 Jun 2014 23:20:43 +0000 (+0200) Subject: Fix memory leak in autodetect_file_type() X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=89ffe1d826d2a4893f4c13c2cb77d8d0a5b7f9bd;p=libHPCS.git Fix memory leak in autodetect_file_type() --- 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; }