Module Name:    othersrc
Committed By:   stacktic
Date:           Wed Nov 18 10:02:26 UTC 2009

Modified Files:
        othersrc/lib/libfsu_utils: fsu_dir.c

Log Message:
Free the right pointer on fsu_getcwd


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 othersrc/lib/libfsu_utils/fsu_dir.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: othersrc/lib/libfsu_utils/fsu_dir.c
diff -u othersrc/lib/libfsu_utils/fsu_dir.c:1.5 othersrc/lib/libfsu_utils/fsu_dir.c:1.6
--- othersrc/lib/libfsu_utils/fsu_dir.c:1.5	Tue Nov 17 15:10:13 2009
+++ othersrc/lib/libfsu_utils/fsu_dir.c	Wed Nov 18 10:02:26 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: fsu_dir.c,v 1.5 2009/11/17 15:10:13 stacktic Exp $ */
+/* $NetBSD: fsu_dir.c,v 1.6 2009/11/18 10:02:26 stacktic Exp $ */
 
 /*
  * Copyright (c) 2008,2009 Arnaud Ysmal.  All Rights Reserved.
@@ -244,7 +244,7 @@
 
         dirname[0] = '/';
 	dirname[1] = '\0';
-	free(names[0]);
+	free(names[i]);
 	for (--i; i >= 0; --i) {
 		rv = strlcat(dirname, names[i], len);
 		free(names[i]);

Reply via email to