fix resource leak
fix resource leak

get_input_string method which reads entries from the journal allocated
space which was not properly freed

ContentSafe/journal-gateway-zmtp,ContentSafe/journal-gateway-zmtp,travelping/journal-gateway-zmtp,travelping/journal-gateway-zmtp