diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-11-25 13:20:36 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2003-11-25 13:20:36 +0000 |
commit | 4f84e65c501d246b6f73809085327dc697746238 (patch) | |
tree | 90ede99a7f1ad51c7a59e34c6ae6672bb4c33130 /epan/proto.c | |
parent | 0bf28e51afb4c44fb43c29b03e7a2284629f6a6f (diff) |
fvalue_free() is one of the most called functions.
This function is also very small, so small that teh overhead for the actual function call and return is likely to be a significant part
of its execution time.
change it into a macro and make it thus slightly faster by eliminating the function call overhead.
svn path=/trunk/; revision=9083
Diffstat (limited to 'epan/proto.c')
-rw-r--r-- | epan/proto.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/proto.c b/epan/proto.c index 5c0eab241c..3ee0d5b93c 100644 --- a/epan/proto.c +++ b/epan/proto.c @@ -1,7 +1,7 @@ /* proto.c * Routines for protocol tree * - * $Id: proto.c,v 1.108 2003/11/24 22:11:54 guy Exp $ + * $Id: proto.c,v 1.109 2003/11/25 13:20:34 sahlberg Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -349,7 +349,8 @@ free_node_field_info(field_info* finfo) if (finfo->representation) { g_mem_chunk_free(gmc_item_labels, finfo->representation); } - fvalue_free(finfo->value); + + FVALUE_FREE(finfo->value); free_field_info(finfo); } |