Add push_pull.rb; fix deallocation issue.

Signed-off-by: Alex Brem <alex@fluktuation.net>