DESCRIPTION

JVMCBC-412 Fix extras leak on IllegalReferenceCountException

Motivation
----------
If there was an error encoding the request, the extras bytebuf allocated
will leak.

Changes
-------
On exception trying to retain content, release extras allocated for the
request and rethrow the exception.

Results
-------
There is no leak now while running leak detector on the encode failure
feature test.

Change-Id: Id3383a58aab9fe07448b9c22eb1beb3d70e2767d
Reviewed-on: http://review.couchbase.org/76091
Tested-by: Marques Ellis xxx@xxx.xxx
Reviewed-by: Natasha Sullivan xxx@xxx.xxx


COMMENTS

author: Marques Ellis
date: 2017-03-31 19:15:56.019000000

Change has been successfully cherry-picked as c68c670eb325dedcb936303d021b81c9a1dfdf73 by Marques Ellis

-------------------------------------
