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
The text was updated successfully, but these errors were encountered:
labyrinth-ssr
changed the title
Proxy field host in struct OfxHost and String in enum PropertyValue.
Field host in struct OfxHost and String in enum PropertyValue can be leaked.
Jul 27, 2023
rustfx/src/rfx/propertyset.rs
Lines 11 to 18 in 8209089
rustfx/src/rfx/propertyset.rs
Lines 117 to 122 in 8209089
The destructor won't release
PropertyValue.String
(on the heap sincePropertyValue::String(c_str.to_owned().into_raw())
), causing memory leak.To free the field, probable fix is to implement
drop
forPropertyValue
.rustfx/src/suites/core.rs
Lines 116 to 121 in 8209089
rustfx/src/suites/core.rs
Lines 160 to 170 in 8209089
The destructor won't release
OfxHost.host
(on the heap sincehost_props = Box::into_raw(properties);
), causing memory leak.Probable fix is to add release for
host
indrop
forOfxHost
.rustfx/src/suites/core.rs
Lines 123 to 129 in 8209089
The text was updated successfully, but these errors were encountered: