Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-commits: [Wireshark-commits] rev 19226: /trunk/epan/dissectors/ /trunk/epan/dissectors/:

Date: Wed, 13 Sep 2006 08:30:20 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=19226

User: sahlberg
Date: 2006/09/13 08:30 AM

Log:
 the way we pass dcerpc strings from deep down in helpers to high level dissector functions (dcv->private_data) for things such as strings and sids is a mess and very difficult to handle without a lot of memory leakage.
 
 the biggest problem in changing this is the dcv->private_data usage.
 
 
 add a dcv->se_data which can keep data around from a request to a response and use this to change the LSA/OpenPolicy2 servername passing from request to response as a test pattern of moving all users of dcv->private data over to use dcv->se_data.
 
 once all users are migrated over we can then change the dcv->private data pointer to be of ep scope and thus not need an explicit free (which is quite difficult and it is quite difficult in the old semantics to know WHEN we need to free this pointer)
 
 this will eventually make the usage more clean and at the same time close down quite a few memory leaks.
 
 
 eventually this will make dissect_ndr_nt_SID return a pointer to ep allocated memory that need not be explicitely freed.

Directory: /trunk/epan/dissectors/
  Changes    Path                   Action
  +22 -8     packet-dcerpc-lsa.c    Modified
  +4 -0      packet-dcerpc.c        Modified
  +24 -2     packet-dcerpc.h        Modified