[gwget] Fix memory leak
- From: David Sedeño Fernández <davidsf src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gwget] Fix memory leak
- Date: Sat, 3 Oct 2009 18:23:38 +0000 (UTC)
commit 9ab433bf9bfdb91f7e054d4c06d066709eb9f240
Author: David Sedeño <david alderia com>
Date: Sat Oct 3 20:23:28 2009 +0200
Fix memory leak
ChangeLog | 1 +
src/wget-log.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 75a1c1f..c5d2e2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2009-10-03 David Sedeño <david alderia com>
+ * src/wget-log.c: Free tmp var (Fix #595155)
* epiphany-extension/ephy-gwget-extension.c: Fix Dbus call.
2009-08-14 David Sedeño <david alderia com>
diff --git a/src/wget-log.c b/src/wget-log.c
index 5063f0d..686a3ba 100644
--- a/src/wget-log.c
+++ b/src/wget-log.c
@@ -338,6 +338,7 @@ wget_log_process_line (GwgetData *gwgetdata)
tmp[j]='\0';
gwget_data_set_filename_from_url(gwgetdata,tmp);
gwgetdata->local_filename = g_strconcat (gwgetdata->dir, gwgetdata->filename, NULL);
+ g_free(tmp);
}
if (strstr (gwgetdata->line, " =>") != NULL) {
@@ -356,6 +357,7 @@ wget_log_process_line (GwgetData *gwgetdata)
gwgetdata->total_size=0;
gwgetdata->session_start_time = 0;
gwgetdata->session_start_size = 0;
+ g_free(tmp);
}
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]