[metacity] session: fix memory leak
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] session: fix memory leak
- Date: Sun, 14 Mar 2021 18:59:54 +0000 (UTC)
commit d0ea205f221c3d895dd9e355bb513917c3c141e9
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 14 20:41:28 2021 +0200
session: fix memory leak
Coverity CID: #1502682
src/core/session.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/core/session.c b/src/core/session.c
index 6d7ea57b3..5894742c1 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -1104,11 +1104,10 @@ load_state (const char *previous_save_file)
previous_save_file,
NULL);
- error = NULL;
if (!g_file_get_contents (session_file,
&text,
&length,
- &error))
+ NULL))
{
char *canonical_session_file = session_file;
@@ -1127,7 +1126,6 @@ load_state (const char *previous_save_file)
{
/* oh, just give up */
- g_error_free (error);
g_free (session_file);
g_free (canonical_session_file);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]