Ethereal-dev: [Ethereal-dev] Do we need to free tvb's after creation?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Tim Potter <tpot@xxxxxxxxx>
Date: Fri, 12 Jul 2002 22:00:17 -0700
I'm just wondering whether this is correct.


Tim.

*** packet-dcerpc.c.~1.68.~	Wed Jul 10 21:46:32 2002
--- packet-dcerpc.c	Fri Jul 12 21:58:04 2002
***************
*** 1362,1367 ****
--- 1362,1369 ----
  	    ntlmssp_tvb = tvb_new_subset(tvb, offset, hdr->auth_len,
  					 hdr->auth_len);
  	    call_dissector(ntlmssp_handle, ntlmssp_tvb, pinfo, dcerpc_tree);
+ 
+ 	    tvb_free(tvb);
  	} else {
              proto_tree_add_text (dcerpc_tree, tvb, offset, hdr->auth_len,
                                   "Auth Data");