Fix mismatched malloc/delete.
Fix mismatched malloc/delete.

Change-Id: I049ae522adf81a8c9a378b33fb80076492442726
Reviewed-on: http://gerrit.cloudera.org:8080/824
Reviewed-by: Ippokratis Pandis <49df5a81b84182d67af5e425b1c52ae595fc1f17@cloudera.com>
Tested-by: Internal Jenkins

cloudera/recordservice,cloudera/recordservice,cloudera/recordservice,cloudera/recordservice,cloudera/recordservice,cloudera/recordservice,cloudera/recordservice