From: Dana Jansens Date: Wed, 9 May 2007 21:17:31 +0000 (+0000) Subject: mem leak X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=a97b2f75fb6c0180098b0fef04cbd7ab1aa8ae34;p=chaz%2Fopenbox mem leak --- diff --git a/openbox/session.c b/openbox/session.c index 463e9893..2c189ed0 100644 --- a/openbox/session.c +++ b/openbox/session.c @@ -394,6 +394,7 @@ static void sm_save_yourself(SmcConn conn, SmPointer data, gint save_type, if (!SmcRequestSaveYourselfPhase2(conn, sm_save_yourself_2, savedata)) { ob_debug_type(OB_DEBUG_SM, "Requst for phase 2 failed\n"); + g_free(savedata); SmcSaveYourselfDone(conn, FALSE); } }