Author: pfg
Date: Fri Feb  6 14:07:01 2015
New Revision: 278314
URL: https://svnweb.freebsd.org/changeset/base/278314

Log:
  Drop cgetclose() from getdiskbyname().
  
  This was a local addition to the original change from NetBSD.
  Being this libc there is some chance for it to interfere with
  user's cget*() functions usage. The memory leak was finely
  plugged by r278300.
  
  Pointed out by:       ache

Modified:
  head/lib/libc/gen/disklabel.c

Modified: head/lib/libc/gen/disklabel.c
==============================================================================
--- head/lib/libc/gen/disklabel.c       Fri Feb  6 12:18:38 2015        
(r278313)
+++ head/lib/libc/gen/disklabel.c       Fri Feb  6 14:07:01 2015        
(r278314)
@@ -162,6 +162,5 @@ getdiskbyname(const char *name)
        dp->d_magic = DISKMAGIC;
        dp->d_magic2 = DISKMAGIC;
        free(buf);
-       (void)cgetclose();
        return (dp);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to