diff options
author | Evan Huus <eapache@gmail.com> | 2013-08-18 19:59:28 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-08-18 19:59:28 +0000 |
commit | 6dd6ed8559b508d444370c4b326467cd1e59f4f6 (patch) | |
tree | a9d69c25714d0f567e7dd500bb294b43524233c7 /epan/dissectors/packet-xml.c | |
parent | 0a23ac400ac11bca730771cc773cd5aba2125495 (diff) |
Use epan scope for one XML DTD string to fix a small leak.
svn path=/trunk/; revision=51418
Diffstat (limited to 'epan/dissectors/packet-xml.c')
-rw-r--r-- | epan/dissectors/packet-xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-xml.c b/epan/dissectors/packet-xml.c index 52617a6269..ded7c3c219 100644 --- a/epan/dissectors/packet-xml.c +++ b/epan/dissectors/packet-xml.c @@ -1218,7 +1218,7 @@ static void register_dtd(dtd_build_data_t *dtd_data, GString *errors) gint *ett_p; if ( ! dtd_data->description) { - dtd_data->description = g_strdup(root_name); + dtd_data->description = wmem_strdup(wmem_epan_scope(), root_name); } ett_p = &root_element->ett; |