repo: Watching prefix
Change-Id: Ia315d6e529fa4402ad9ca4706b70db1e75eb054c
Refs: #1784
diff --git a/src/handles/base-handle.hpp b/src/handles/base-handle.hpp
index 9427356..44ac4a8 100644
--- a/src/handles/base-handle.hpp
+++ b/src/handles/base-handle.hpp
@@ -110,10 +110,10 @@
inline void
BaseHandle::reply(const Interest& commandInterest, const RepoCommandResponse& response)
{
- Data rdata(commandInterest.getName());
- rdata.setContent(response.wireEncode());
- m_keyChain.sign(rdata);
- m_face.put(rdata);
+ shared_ptr<Data> rdata = make_shared<Data>(commandInterest.getName());
+ rdata->setContent(response.wireEncode());
+ m_keyChain.sign(*rdata);
+ m_face.put(*rdata);
}
inline void