Warning C28106: Variable already holds resource possibly causing leak
A variable that contains a resource is used in a context in which a new value can be placed in the variable. If this occurs, the resource can be lost and not properly freed, causing a resource leak.
The following code example generates this warning:
The following code example avoids this warning:
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback