Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-smb.c

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Apr 2002 05:23:07 -0500 (CDT)
guy         2002/04/29 05:23:06 CDT

  Modified files:
    .                    packet-smb.c 
  Log:
  There's no need to allocate and fill in an array of sub-authorities and
  then later construct the sub-authority string from that array; we can
  just construct the string as we fetch the sub-authorities.
  
  Given that we're doing that, use the cleanup handler to free the string,
  so that we don't leak memory if we throw an exception when fetching the
  RID, for example.
  
  Revision  Changes    Path
  1.253     +19 -27    ethereal/packet-smb.c