You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cRelName := C.CString(name)
if C.realpath(cRelName, cPath) == nil {
C.free(unsafe.Pointer(cRelName)) // <=== This line should be added to the code.
return nil, errors.New("plugin.Open(" + name + "): realpath failed")
}
C.free(unsafe.Pointer(cRelName))
The text was updated successfully, but these errors were encountered:
cRelName in https://github.com/golang/go/blob/master/src/plugin/plugin_dlopen.go#L46 is not freed if realpath fails:
The text was updated successfully, but these errors were encountered: