Keep track of polygons in bsp_split() that are not used in the result lists
Newline between _build and _build_array
ifndef POLY_MAX_VERTS
Plug a leak in bsp_build[_array]() when polys are copied.

Remove polygons unused in bsp_subdivide()
Track created polygons in bsp_subdivide
Clean up created polygons in bsp_clip_polygon_array
Equivalent fix to db340b5 for bsp_clip_polygons()

:rage:
Allocate as much memory as you claim to need.
Actually store the created polys

This is why we don't write two identical functions, kids.
Merge pull request #44 from sshirokov/track-unused-polys

Plug leaks in bsp_build() and bsp_clip()