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);
 }
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to