summaryrefslogtreecommitdiff
path: root/src/capplet
diff options
context:
space:
mode:
authorSaverio Miroddi <[email protected]>2026-07-21 13:09:53 +0200
committerVictor Kareh <[email protected]>2026-07-30 22:03:47 +0000
commit3ce6b85a04d5dacf27a228e002a4f301fc88abfd (patch)
tree151702bb185cd1d6df8fd90cb9d52948dc06bc58 /src/capplet
parentd3a424b438c4df3e464b652f71ee3f57f5e2bbd2 (diff)
downloadmate-notification-daemon-3ce6b85a04d5dacf27a228e002a4f301fc88abfd.tar.bz2
mate-notification-daemon-3ce6b85a04d5dacf27a228e002a4f301fc88abfd.tar.xz
daemon: Fix GetCapabilities memory leakHEADmaster
g_variant_dup_strv() allocates a vector and duplicates every string. The generated completion helper copies that vector into the outgoing GVariant, leaving the duplicated input unowned. AddressSanitizer reports 360 direct bytes and 420 indirect bytes leaked after five calls. Pass the constant capability list directly to the helper instead. This avoids the temporary allocations while leaving the returned capabilities unchanged. Signed-off-by: Saverio Miroddi <[email protected]>
Diffstat (limited to 'src/capplet')
0 files changed, 0 insertions, 0 deletions