AVRO-510. C: Fix some memory leaks in datafile reader and writer. Contributed by Robert G. Jakabosky.