From 7d6d703574f9f94801add37b3c04682341ff28ca Mon Sep 17 00:00:00 2001 From: sahlberg Date: Thu, 1 Sep 2005 09:03:29 +0000 Subject: 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 --- tap-protocolinfo.c | 1 - 1 file changed, 1 deletion(-) (limited to 'tap-protocolinfo.c') 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; -- cgit v1.2.3