diff options
author | Steffen Jaeckel <jaeckel-floss@eyet-services.de> | 2023-05-11 11:11:44 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2023-05-12 08:39:20 +0200 |
commit | 12d76e4a214c392e6e3daa5fd9bcf816addf8746 (patch) | |
tree | 2125d4efee4c7928cfe3a259865a95cd34ebfbef /src/common.h | |
parent | 76a8de891ea7800b62985b208c0ec2c4606d90c9 (diff) | |
download | profani-tty-12d76e4a214c392e6e3daa5fd9bcf816addf8746.tar.gz |
Fix memleaks & more auto-free
`data_dir` would have been leaked if directory creation failed. `editor_argv` was leaked at some point, no idea why. ``` ==1244734== 118 (32 direct, 86 indirect) bytes in 1 blocks are definitely lost in loss record 6,299 of 7,824 ==1244734== at 0x4846CC3: realloc (vg_replace_malloc.c:1451) ==1244734== by 0x5E85AD0: g_realloc (in /usr/lib/libglib-2.0.so.0.7600.1) ==1244734== by 0x5E4A004: ??? (in /usr/lib/libglib-2.0.so.0.7600.1) ==1244734== by 0x5E4A7B1: g_ptr_array_add (in /usr/lib/libglib-2.0.so.0.7600.1) ==1244734== by 0x5EA4235: g_strsplit (in /usr/lib/libglib-2.0.so.0.7600.1) ==1244734== by 0x1F143C: get_message_from_editor (editor.c:92) ==1244734== by 0x193F6B: _inp_rl_send_to_editor (inputwin.c:950) ==1244734== by 0x614642F: _rl_dispatch_subseq (readline.c:916) ==1244734== by 0x6146C85: _rl_dispatch_callback (readline.c:823) ==1244734== by 0x616739F: rl_callback_read_char (callback.c:241) ==1244734== by 0x1923DB: inp_readline (inputwin.c:188) ==1244734== by 0x149860: prof_run (profanity.c:117) ==1244734== by 0x2283E8: main (main.c:186) ``` Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
Diffstat (limited to 'src/common.h')
0 files changed, 0 insertions, 0 deletions