write_riemann plugin: Really fix a memory leak.

Github: #307