* pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.

This commit is contained in:
Corinna Vinschen 2002-06-26 14:59:22 +00:00
parent 8698edb8ae
commit 303af15742
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-06-26 Corinna Vinschen <corinna@vinschen.de>
* pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.
2002-06-26 Christopher Faylor <cgf@redhat.com>
* dcrt0.cc (_dcrt0): Be more defensive when reserved block is used and

View File

@ -63,7 +63,8 @@ public:
: fh (INVALID_HANDLE_VALUE), buf (NULL), lptr (NULL), eptr (NULL) {}
virtual ~pwdgrp_read ()
{
close ();
if (fh != INVALID_HANDLE_VALUE)
CloseHandle (fh);
if (buf)
free (buf);
}