IMPALA-812: Fix select node to properly transfer memory ownership.

Change-Id: I83b6d085362726aa080077845d3bef71b184621c
Reviewed-on: http://gerrit.ent.cloudera.com:8080/2065
Reviewed-by: Marcel Kornacker <marcel@cloudera.com>
Tested-by: jenkins