commit | 19f81de7beaf7510f2e608cfc1bdb2a8c9012937 | [log] [tgz] |
---|---|---|
author | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Fri Jan 04 22:27:47 2013 -0800 |
committer | Zhenkai Zhu <zhenkai@cs.ucla.edu> | Fri Jan 04 22:27:47 2013 -0800 |
tree | 63a7f7471bebb2c33cb64affa0626cf1b389bfbc | |
parent | b0adefe60331bb325b449bf6024543995ee0629a [diff] [blame] |
fix memory leak in ccnx-tunnel
diff --git a/src/ccnx-closure.cpp b/src/ccnx-closure.cpp index a4c378c..528c721 100644 --- a/src/ccnx-closure.cpp +++ b/src/ccnx-closure.cpp
@@ -44,4 +44,11 @@ } } +Closure * +Closure::dup() const +{ + Closure *closure = new Closure(*this); + return closure; +} + } // Ccnx