Date: Fri, 6 Feb 2015 14:07:01 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r278314 - head/lib/libc/gen Message-ID: <201502061407.t16E71x9034466@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502061407.t16E71x9034466>