Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 May 2015 12:04:06 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r283818 - head/usr.sbin/pw
Message-ID:  <201505311204.t4VC46A6099441@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Sun May 31 12:04:06 2015
New Revision: 283818
URL: https://svnweb.freebsd.org/changeset/base/283818

Log:
  Move cleanup functions to the right place

Modified:
  head/usr.sbin/pw/pw_conf.c

Modified: head/usr.sbin/pw/pw_conf.c
==============================================================================
--- head/usr.sbin/pw/pw_conf.c	Sun May 31 12:03:38 2015	(r283817)
+++ head/usr.sbin/pw/pw_conf.c	Sun May 31 12:04:06 2015	(r283818)
@@ -357,9 +357,10 @@ read_userconfig(char const * file)
 				break;
 			}
 		}
-		free(buf);
-		fclose(fp);
 	}
+	free(buf);
+	fclose(fp);
+
 	return (&config);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201505311204.t4VC46A6099441>