diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2014-09-09 22:07:28 +0300 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2014-09-09 22:07:28 +0300 |
commit | b6faeaaa76403a89c93d9da30323af6615a3af21 (patch) | |
tree | 52a9d1eb3d3b6f0c56a0f8b491f6b39e5728240d /src | |
parent | f983438e97d92b639d053e0c188ea2fc0bed49fa (diff) | |
download | profani-tty-b6faeaaa76403a89c93d9da30323af6615a3af21.tar.gz |
Fixed memory leaks
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/buffer.c | 1 | ||||
-rw-r--r-- | src/ui/window.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/buffer.c b/src/ui/buffer.c index e407681e..ab5af17d 100644 --- a/src/ui/buffer.c +++ b/src/ui/buffer.c @@ -118,5 +118,6 @@ _free_entry(ProfBuffEntry *entry) free(entry->message); free(entry->from); free(entry->date_fmt); + free(entry); } diff --git a/src/ui/window.c b/src/ui/window.c index dcbb56ba..ab28f242 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -355,6 +355,7 @@ win_save_vprint(ProfWin *window, const char show_char, GTimeVal *tstamp, GString *fmt_msg = g_string_new(NULL); g_string_vprintf(fmt_msg, message, arg); win_save_print(window, show_char, tstamp, flags, attrs, from, fmt_msg->str); + g_string_free(fmt_msg, true); } void |