From: Michal MalĂ˝ Date: Fri, 1 Aug 2014 19:42:18 +0000 (+0200) Subject: Fix memory leak X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=92d9ee19925a348d57f6eb6565837bb13e40097c;p=libHPCS.git Fix memory leak --- 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; }