Some format strings used integer values for unsigned integers. Memory and file descriptors leaked in some error conditions.