summaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/peer-check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/peer-check.cpp')
-rw-r--r--configd/src/apps/sentinel/peer-check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/configd/src/apps/sentinel/peer-check.cpp b/configd/src/apps/sentinel/peer-check.cpp
index 0af5a6fb58f..ac3775d4c4d 100644
--- a/configd/src/apps/sentinel/peer-check.cpp
+++ b/configd/src/apps/sentinel/peer-check.cpp
@@ -39,9 +39,9 @@ void PeerCheck::RequestDone(FRT_RPCRequest *req) {
LOG(debug, "OK ping to %s [port %d]", _hostname.c_str(), _portnum);
_statusOk = true;
}
- _req->SubRef();
+ _req->internal_subref();
_req = nullptr;
- _target->SubRef();
+ _target->internal_subref();
_target = nullptr;
// Note: will delete this object, so must be called as final step:
_callback.returnStatus(_statusOk);