Skip to content

bug: libobs: portal shortcuts leak darray storage in set_shortcuts #464

Closed

Description

@zackees

LeakSanitizer and valgrind both report it from test_portal_shortcuts (run):

Direct leak of 1368 byte(s) in 21 object(s) allocated from:
    #1 a_malloc            libobs/util/bmem.c:55
    #2 bmalloc             bmem.c:108
    #3 darray_ensure_capacity libobs/util/darray.h:107
    #4 set_shortcuts       libobs/obs-nix-portal-shortcuts.c:436
    #5 sync_shortcuts      obs-nix-portal-shortcuts.c:935
    #6 portal_thread       obs-nix-portal-shortcuts.c:1184
Direct leak of 222 byte(s) in 2 object(s) ...

The darray built in set_shortcuts (Wayland GlobalShortcuts portal) isn't freed on every path. valgrind reports 3 definite leaks. Found for #448/#449; test_portal_shortcuts under ASan reproduces it.

Activity

  1. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Claiming: #464.

  2. added
    claimed
    on Oct 13, 2026
  3. added a commit that references this issue on Oct 13, 2026
    3b6a8bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions