[epiphany/mcatanzaro/scan-build-discoveries: 2/3] session: fix leak of SaveData in error path



commit bb951a1806323e79bf5c32d8b853dfc415ad94bf
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]