OMEMO error mem leaks #122

Closed
opened 2026-05-15 14:23:28 +00:00 by jabber.developer · 1 comment
==35221== 60 (16 direct, 44 indirect) bytes in 1 blocks are definitely lost in loss record 244 of 495
==35221==    at 0x4846828: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==35221==    by 0x57B1AC9: g_malloc (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
==35221==    by 0x57C71B4: g_slice_alloc0 (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
==35221==    by 0x5793E11: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
==35221==    by 0x5794514: g_error_new_valist (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
==35221==    by 0x5794750: g_set_error (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
==35221==    by 0x57A45EA: g_key_file_get_value (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
==35221==    by 0x57A4E3C: g_key_file_get_uint64 (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0)
==35221==    by 0x1EE215: _load_identity (omemo.c:1434)
==35221==    by 0x1EE215: omemo_on_connect (omemo.c:242)
==35221==    by 0x179E61: sv_ev_login_account_success (server_events.c:103)
==35221==    by 0x15C40B: session_login_success (session.c:335)
==35221==    by 0x15E7D2: _connection_handler (connection.c:982)
```log ==35221== 60 (16 direct, 44 indirect) bytes in 1 blocks are definitely lost in loss record 244 of 495 ==35221== at 0x4846828: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==35221== by 0x57B1AC9: g_malloc (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0) ==35221== by 0x57C71B4: g_slice_alloc0 (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0) ==35221== by 0x5793E11: ??? (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0) ==35221== by 0x5794514: g_error_new_valist (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0) ==35221== by 0x5794750: g_set_error (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0) ==35221== by 0x57A45EA: g_key_file_get_value (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0) ==35221== by 0x57A4E3C: g_key_file_get_uint64 (in /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0.8000.0) ==35221== by 0x1EE215: _load_identity (omemo.c:1434) ==35221== by 0x1EE215: omemo_on_connect (omemo.c:242) ==35221== by 0x179E61: sv_ev_login_account_success (server_events.c:103) ==35221== by 0x15C40B: session_login_success (session.c:335) ==35221== by 0x15E7D2: _connection_handler (connection.c:982) ```
jabber.developer added this to the Plans (2025-2026) project 2026-05-18 09:46:12 +00:00
jabber.developer moved this to In Progress in Plans (2025-2026) on 2026-06-20 10:57:21 +00:00
jabber.developer added the
Kind/Bug
Priority
Medium
3
Reviewed
Confirmed
1
labels 2026-06-20 11:00:46 +00:00
Author
Owner

Fixed by #105.

auto_gerror GError* error = NULL;

New auto_gerror attribute allows automatic error cleanup upon exit.

Fixed by #105. https://git.jabber.space/devs/cproof/src/commit/830479cf20b2e34486b0d557e050f0f901cb0c74/src/omemo/omemo.c#L1787 New `auto_gerror` attribute allows automatic error cleanup upon exit.
jabber.developer moved this to Done in Plans (2025-2026) on 2026-06-20 11:02:30 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: devs/cproof#122
No description provided.