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
{{ message }}
Repository navigation
bug: libobs/obs-properties: a file-save path's filter and a replaced button URL are leaked #831
Found while characterizing obs-properties.c (#828, #830).
Location
libobs/obs-properties.c, path_data_free: frees filter only when type == OBS_PATH_FILE, but obs_properties_add_path also stores it for OBS_PATH_FILE_SAVE. Every file-save path property with a filter leaks that string when its properties are destroyed (every time a source's Properties dialog closes, for sources with a save path).
obs_property_button_set_url: data->url = bstrdup(url); without bfree(data->url) first, so calling it twice leaks the first URL.
Class
Memory leak.
Proposed fix and failing test
if (data->type == OBS_PATH_FILE || data->type == OBS_PATH_FILE_SAVE) in path_data_free (or free filter unconditionally: it is NULL otherwise).
bfree(data->url); before the bstrdup.
Failing test: a cmocka test under LeakSanitizer (obs_test_sanitize(... address)) that adds a FILE_SAVE path with a filter, and a button with set_url called twice, then destroys the properties. The Rust port (#828) must not reproduce either leak.
Activity
obs-properties: Port libobs/obs-properties.c (GREEN)
zackees commentedon Oct 15, 2026
Claiming: fix on branch fix/obs-properties-leaks. Plan: 1) RED test (Rust, leak checks), 2) GREEN fix in Rust port + C. PR within the hour.
obs-properties: Port libobs/obs-properties.c (obs-rust#832)
obs-properties: Free a file-save path's filter and a replaced button …