From e91b22a9654bf9912f3f88c917773a96ff7733a3 Mon Sep 17 00:00:00 2001 Message-Id: From: Martin Milata Date: Thu, 8 Sep 2011 16:29:01 +0200 Subject: [PATCH] Fix free space checking The g_settings_dump_location was freed before it was passed to the free space check, thus preventing it from working. --- src/daemon/abrt-server.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/daemon/abrt-server.c b/src/daemon/abrt-server.c index 983706e..330f85f 100644 --- a/src/daemon/abrt-server.c +++ b/src/daemon/abrt-server.c @@ -143,7 +143,6 @@ static int create_debug_dump() /* Trim old crash dumps if necessary */ load_abrt_conf(); - free_abrt_conf_data(); /* can do this because we need only g_settings_nMaxCrashReportsSize */ if (g_settings_nMaxCrashReportsSize > 0) { /* x1.25 and round up to 64m: go a bit up, so that usual in-daemon trimming @@ -154,6 +153,7 @@ static int create_debug_dump() check_free_space(maxsize, g_settings_dump_location); trim_debug_dumps(g_settings_dump_location, maxsize * (double)(1024*1024), path); } + free_abrt_conf_data(); free(path); -- 1.7.7.rc0.70.g82660