[PATCH] LOG: Fix a crash in the shutdown.

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

 



Signed-off-by: Angus Salkeld <asalkeld@xxxxxxxxxx>
---
 exec/logsys.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/exec/logsys.c b/exec/logsys.c
index 158bf1a..0a44454 100644
--- a/exec/logsys.c
+++ b/exec/logsys.c
@@ -249,7 +249,7 @@ void logsys_system_fini (void)
 	int f;
 	for (i = 0; i < LOGSYS_MAX_SUBSYS_COUNT; i++) {
 		free(logsys_loggers[i].logfile);
-		for (f = 0; i < logsys_loggers[i].file_idx; f++) {
+		for (f = 0; f < logsys_loggers[i].file_idx; f++) {
 			free(logsys_loggers[i].files[f]);
 		}
 	}
-- 
1.7.7.3

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss


[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux