From 55add7077f67b75200f70119875f27f086775880 Mon Sep 17 00:00:00 2001 From: Ronnie 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. svn path=/trunk/; revision=15651 --- 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