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:
pfg 2015-02-06 14:07:01 +00:00
parent 98a3318e37
commit adde5b33d4

View File

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