[anjuta/git-shell: 300/373] subversion: Plug some leaks in the log command



commit ef8adc8cf8007f141655c034657531e39abb91fb
Author: James Liggett <jrliggett cox net>
Date:   Sat Apr 17 17:38:22 2010 -0700

    subversion: Plug some leaks in the log command
    
    Free the entry's author name and date after the log entry has been constructed

 plugins/subversion/svn-log-command.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/subversion/svn-log-command.c b/plugins/subversion/svn-log-command.c
index c380415..b4a5d44 100644
--- a/plugins/subversion/svn-log-command.c
+++ b/plugins/subversion/svn-log-command.c
@@ -106,6 +106,9 @@ log_callback (void *baton,
 	
 	log_entry = svn_log_entry_new (entry_author, entry_date, revision, 
 								   entry_message);
+
+	g_free (entry_author);
+	g_free (entry_date);
 	
 	anjuta_async_command_lock (ANJUTA_ASYNC_COMMAND (self));
 	g_queue_push_head (self->priv->log_entry_queue, log_entry);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]