diff options
author | William Wennerström <william@wstrm.dev> | 2020-07-10 14:34:11 +0200 |
---|---|---|
committer | William Wennerström <william@wstrm.dev> | 2020-07-10 14:50:29 +0200 |
commit | 3b37893aa3f762a63bd7a605cfb59e487c14f833 (patch) | |
tree | 19022804da830a5687bb9e6588c01ace16580d07 /src | |
parent | 10d771f3d1994cc450e96f25d45a3bbf297fb48f (diff) | |
download | profani-tty-3b37893aa3f762a63bd7a605cfb59e487c14f833.tar.gz |
Free errors after they have been printed
Diffstat (limited to 'src')
-rw-r--r-- | src/omemo/omemo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c index 997eddae..2060454b 100644 --- a/src/omemo/omemo.c +++ b/src/omemo/omemo.c @@ -263,6 +263,7 @@ omemo_on_connect(ProfAccount* account) } } else if (error->code != G_FILE_ERROR_NOENT) { log_warning("OMEMO: error loading identity from: %s, %s", omemo_ctx.identity_filename->str, error->message); + g_error_free(error); return; } @@ -271,6 +272,7 @@ omemo_on_connect(ProfAccount* account) _load_trust(); } else if (error->code != G_FILE_ERROR_NOENT) { log_warning("OMEMO: error loading trust from: %s, %s", omemo_ctx.trust_filename->str, error->message); + g_error_free(error); } error = NULL; @@ -278,6 +280,7 @@ omemo_on_connect(ProfAccount* account) _load_sessions(); } else if (error->code != G_FILE_ERROR_NOENT) { log_warning("OMEMO: error loading sessions from: %s, %s", omemo_ctx.sessions_filename->str, error->message); + g_error_free(error); } error = NULL; @@ -285,6 +288,7 @@ omemo_on_connect(ProfAccount* account) _load_known_devices(); } else if (error->code != G_FILE_ERROR_NOENT) { log_warning("OMEMO: error loading known devices from: %s, %s", omemo_ctx.known_devices_filename->str, error->message); + g_error_free(error); } } |