summaryrefslogtreecommitdiff
path: root/epan/epan.c
diff options
context:
space:
mode:
authorJakub Zawadzki <darkjames-ws@darkjames.pl>2012-10-10 19:05:30 +0000
committerJakub Zawadzki <darkjames-ws@darkjames.pl>2012-10-10 19:05:30 +0000
commitf68020f1e160200583881aa79e312fe8a8b93e0d (patch)
tree942b0b8329edb124932f2867cd2510722f27dc17 /epan/epan.c
parentdbca2e7d8fbb3abd8101911df8468701b71e2061 (diff)
downloadwireshark-f68020f1e160200583881aa79e312fe8a8b93e0d.tar.gz
Revert changes to ep_ allocator, revert edt ref-counting.
svn path=/trunk/; revision=45451
Diffstat (limited to 'epan/epan.c')
-rw-r--r--epan/epan.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/epan.c b/epan/epan.c
index 3bb6eda095..64974774e3 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -164,8 +164,6 @@ epan_dissect_init(epan_dissect_t *edt, const gboolean create_proto_tree, const g
edt->pi.dependent_frames = NULL;
- edt->mem = ep_create_pool();
-
return edt;
}
@@ -190,6 +188,9 @@ void
epan_dissect_run(epan_dissect_t *edt, void* pseudo_header,
const guint8* data, frame_data *fd, column_info *cinfo)
{
+ /* free all memory allocated during previous packet */
+ ep_free_all();
+
dissect_packet(edt, pseudo_header, data, fd, cinfo);
}
@@ -209,8 +210,6 @@ epan_dissect_cleanup(epan_dissect_t* edt)
if (edt->tree) {
proto_tree_free(edt->tree);
}
-
- ep_free_pool(edt->mem);
}
void