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
This commit is contained in:
Pedro F. Giffuni 2015-02-06 14:07:01 +00:00
parent 83d74204c8
commit 24ef1d7ab6

View File

@ -162,6 +162,5 @@ getdiskbyname(const char *name)
dp->d_magic = DISKMAGIC;
dp->d_magic2 = DISKMAGIC;
free(buf);
(void)cgetclose();
return (dp);
}