Careful with & operator on CComBSTR variables.

Be careful when using the & operator on a CComBSTR variable.  If this variable is not empty, using the & operator on it to point it to a new BSTR will lead to a memory leak. For instance, if you have a variable bsz1 declared and initialized as: CComBSTR bsz1(“HiWorld”);  the member BSTR is allocated by…

3