diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-01 09:03:29 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-01 09:03:29 +0000 |
commit | 7d6d703574f9f94801add37b3c04682341ff28ca (patch) | |
tree | 40523152f48c92d78b90981383f86216eba55ecd /tap-protocolinfo.c | |
parent | 4dce31695eeb191810899e825639931363bc0052 (diff) |
convert one sprintf into g_snprintf()
at the same time, make proto_construct_dfilter_string() return an emem allocated string.
This fixes a tiny memleak in print.c that never freed the string returned by this function.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15651 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tap-protocolinfo.c')
-rw-r--r-- | tap-protocolinfo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tap-protocolinfo.c b/tap-protocolinfo.c index 701d0ffc14..909ac8c240 100644 --- a/tap-protocolinfo.c +++ b/tap-protocolinfo.c @@ -79,7 +79,6 @@ protocolinfo_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, const vo str=proto_construct_dfilter_string(gp->pdata[i], NULL); if(str){ col_append_fstr(pinfo->cinfo, COL_INFO, " %s",str); - g_free(str); } } return 0; |