]> Devoid-pointer.net GitWeb - libHPCS.git/commitdiff
Fix memory leak
authorMichal Malý <madcatxster@devoid-pointer.net>
Fri, 1 Aug 2014 19:42:18 +0000 (21:42 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Fri, 1 Aug 2014 19:42:18 +0000 (21:42 +0200)
libhpcs.c

index f23860280f1efa95e447f7b46b22a0cea3f30382..d972f433104904a392900b4b603ad72186fbd7e1 100644 (file)
--- 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;
 }