[epiphany/mcatanzaro/scan-build-discoveries: 1/2] session: fix leak of SaveData in error path
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/mcatanzaro/scan-build-discoveries: 1/2] session: fix leak of SaveData in error path
- Date: Fri, 27 Dec 2019 17:06:24 +0000 (UTC)
commit 99801328f7948685834cb0c7447e5298558dddef
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Fri Dec 27 10:55:58 2019 -0600
session: fix leak of SaveData in error path
Detected by scan-build
src/ephy-session.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 935c40879..c5c05597b 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -1004,6 +1004,7 @@ ephy_session_save_idle_cb (EphySession *session)
if (ephy_shell_get_n_windows (shell) == 0) {
session_delete (session);
+ save_data_free (data);
return G_SOURCE_REMOVE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]