aboutsummaryrefslogtreecommitdiffstats
path: root/epan/ftypes/ftype-string.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-11-25 13:20:36 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-11-25 13:20:36 +0000
commit4f84e65c501d246b6f73809085327dc697746238 (patch)
tree90ede99a7f1ad51c7a59e34c6ae6672bb4c33130 /epan/ftypes/ftype-string.c
parent0bf28e51afb4c44fb43c29b03e7a2284629f6a6f (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/ftypes/ftype-string.c')
-rw-r--r--epan/ftypes/ftype-string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/ftypes/ftype-string.c b/epan/ftypes/ftype-string.c
index 8a8d3aeaa3..4abdeca986 100644
--- a/epan/ftypes/ftype-string.c
+++ b/epan/ftypes/ftype-string.c
@@ -1,5 +1,5 @@
/*
- * $Id: ftype-string.c,v 1.14 2003/10/29 23:48:14 guy Exp $
+ * $Id: ftype-string.c,v 1.15 2003/11/25 13:20:36 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -144,7 +144,7 @@ val_from_unparsed(fvalue_t *fv, char *s, gboolean allow_partial_value _U_, LogFu
memcpy(fv->value.string, fv->value.bytes->data, num_bytes);
fv->value.string[num_bytes] = '\0';
- fvalue_free(fv_bytes);
+ FVALUE_FREE(fv_bytes);
return TRUE;
}
else {