diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-07-04 11:21:16 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-07-04 11:46:32 +0200 |
commit | e3443f5c9ae7c79b16d5afeeaf6dd8d5a00437b2 (patch) | |
tree | 26e8795e5deddf2b2c8f94f078d601268edee21f /tests | |
parent | 0410802753ec49ecfd699d55c636d41b3d143e01 (diff) | |
download | profani-tty-e3443f5c9ae7c79b16d5afeeaf6dd8d5a00437b2.tar.gz |
Rework omemo_start_device_session_handle_bundle exit
In some conditions we just returned without freeing allocated variables. Should fix following valgrind reported leak: ``` ==17941== 19 bytes in 1 blocks are definitely lost in loss record 613 of 3,674 ==17941== at 0x483677F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==17941== by 0x5BB0DAA: strdup (strdup.c:42) ==17941== by 0x4B1592: omemo_start_device_session_handle_bundle (omemo.c:126) ==17941== by 0x43405E: _iq_handler (iq.c:214) ==17941== by 0x5AF118E: ??? (in /usr/lib64/libmesode.so.0.0.0) ==17941== by 0x5AEDBDA: ??? (in /usr/lib64/libmesode.so.0.0.0) ==17941== by 0x5AFA43E: ??? (in /usr/lib64/libmesode.so.0.0.0) ==17941== by 0x6818AA4: ??? (in /usr/lib64/libexpat.so.1.6.8) ==17941== by 0x681A3AB: ??? (in /usr/lib64/libexpat.so.1.6.8) ==17941== by 0x681D7EB: XML_ParseBuffer (in /usr/lib64/libexpat.so.1.6.8) ==17941== by 0x5AF0A63: xmpp_run_once (in /usr/lib64/libmesode.so.0.0.0) ==17941== by 0x432E5D: connection_check_events (connection.c:104) ==17941== by 0x4323B3: session_process_events (session.c:255) ==17941== by 0x42C097: prof_run (profanity.c:128) ==17941== by 0x4B2610: main (main.c:172) ```
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions