Subject: | $fh not reset when starting a new parse query |
There is a race condition when doing 2 calls to parse in the same process,
the second call can still use the previous $fh defined during the first call...
we should at least reset it..
Suggested patch:
@@ -95,6 +95,7 @@ sub parse {
$minimum = -1;
@zone = ();
+ undef($fh);
if ( @_ == 1 ) {
$text = shift;
}