This patch makes sure that after using the bytes passed in, no references are retained.
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@
1063820 13f79535-47bb-0310-9956-
ffa450edef68
trans_.reset(bytes);
base.read(protocol_);
} finally {
+ trans_.clear();
protocol_.reset();
}
}
} catch (Exception e) {
throw new TException(e);
} finally {
+ trans_.clear();
protocol_.reset();
}
}
} catch (Exception e) {
throw new TException(e);
} finally {
+ trans_.clear();
protocol_.reset();
}
}
} catch (Exception e) {
throw new TException(e);
} finally {
+ trans_.clear();
protocol_.reset();
}
}
endPos_ = offset + length;
}
+ public void clear() {
+ buf_ = null;
+ }
+
@Override
public void close() {}