svn commit: r278314 - head/lib/libc/gen
Pedro F. Giffuni
pfg at FreeBSD.org
Fri Feb 6 14:07:02 UTC 2015
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);
}
More information about the svn-src-head
mailing list