Hello Tony,

Thursday, June 6, 2002, 1:17:59 PM, you wrote:

TH> Richard Wirth wrote:
>> Hello Tony,
>>
>> one other thought about the free() replacing NetApiBufferFree():
>> NetApi...() functions are native win32 calls. While free() is a
>> function of the (compiler provider suplied) C-runtime. Thus I suspect
>> using free() in this case will break the code (at least when using a
>> different compiler).
>>
>>

TH> In this case the buffer is generated by malloc() further up (in
TH> GetPrimaryGroup).   Unless the pointer has changed (it hasn't) then
TH> purify is wrong - the fact that the buffer is subsequently used by one
TH> of the NetApi functions does not mean that it must be freed by
TH> NetApiBufferFree.

TH> Tony


sorry, I was at the wrong line of code (I should always do a 'cvs
diff' before speaking...;-)
You are right, the free() the correct thing to do here!

--
Best regards,
 Richard                            mailto:[EMAIL PROTECTED]


_______________________________________________
Cvsnt mailing list
[EMAIL PROTECTED]
http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt

Reply via email to