aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dtd_parse.l
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-01-15 20:14:00 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-01-15 20:14:00 +0000
commit27556d141a8c160db7f38e3e763c343c97ea8d0b (patch)
treebe23e27dd106486e1da8137ee1836656117dcc6e /epan/dtd_parse.l
parent47730bc1e84da9176c372291f82c3d70f3b57d66 (diff)
two minor leaks
svn path=/trunk/; revision=20443
Diffstat (limited to 'epan/dtd_parse.l')
-rw-r--r--epan/dtd_parse.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dtd_parse.l b/epan/dtd_parse.l
index 9539345d37..d57ae355f2 100644
--- a/epan/dtd_parse.l
+++ b/epan/dtd_parse.l
@@ -337,6 +337,8 @@ extern dtd_build_data_t* dtd_parse(GString* s) {
yyrestart(NULL);
+ if (location) g_free(location);
+
location = NULL;
DtdParseFree(pParser, g_free );