convert-dtsv0-lexer.l: fix memory leak

CID 132822 (#1 of 1): Resource leak (RESOURCE_LEAK)
9. leaked_storage: Variable newname going out of scope leaks the storage it points to

Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net>
[dwg: Removed unnecessary hunk]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2016-07-24 00:50:30 +10:00
parent e24d39a024
commit 1074ee54b6

View file

@ -223,6 +223,8 @@ static void convert_file(const char *fname)
while(yylex()) while(yylex())
; ;
free(newname);
} }
int main(int argc, char *argv[]) int main(int argc, char *argv[])