Catch un-freed memory and use field size as enum, not int (it might be long). Both of these found by LLVM's scan-build.
Catch un-freed memory and use field size as enum, not int (it might be long).
Both of these found by LLVM's scan-build.

kristapsdz/lowdown,kristapsdz/lowdown,kristapsdz/lowdown