diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2021-03-14 20:41:28 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2021-03-14 20:41:28 +0200 |
commit | d0ea205f221c3d895dd9e355bb513917c3c141e9 (patch) | |
tree | a0bece2c2c40b2021055b19c04a7a9ad955af83c | |
parent | 141096385cb170b3dd00fed812c0c21db85a0b33 (diff) | |
download | metacity-d0ea205f221c3d895dd9e355bb513917c3c141e9.tar.gz |
session: fix memory leak
Coverity CID: #1502682
-rw-r--r-- | src/core/session.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/session.c b/src/core/session.c index 6d7ea57b..5894742c 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; |