diff --git a/levels.go b/levels.go index 71f0a3662..ecacdbab6 100644 --- a/levels.go +++ b/levels.go @@ -663,6 +663,9 @@ nextTable: return tbl, errors.Wrapf(err, "Unable to open table: %q", fd.Name()) } if builder.Empty() { + // Cleanup builder resources: + builder.Finish() + builder.Close() continue } numBuilds++