rib: Create response Data as shared_ptr to avoid copy inside Face::put

Change-Id: I1fff93f162cda443e09b62db10ea0d7f3c04628d
Refs: #1775
diff --git a/rib/rib-manager.cpp b/rib/rib-manager.cpp
index 953703b..fc62ace 100644
--- a/rib/rib-manager.cpp
+++ b/rib/rib-manager.cpp
@@ -137,11 +137,11 @@
 {
   const Block& encodedControl = response.wireEncode();
 
-  Data responseData(name);
-  responseData.setContent(encodedControl);
+  shared_ptr<Data> responseData = make_shared<Data>(name);
+  responseData->setContent(encodedControl);
 
-  m_keyChain.sign(responseData);
-  m_face.put(responseData);
+  m_keyChain.sign(*responseData);
+  m_face.put(*responseData);
 }
 
 void