summaryrefslogtreecommitdiff
path: root/src/common/cmdparse.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/cmdparse.cc')
-rw-r--r--src/common/cmdparse.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/cmdparse.cc b/src/common/cmdparse.cc
index 16c62349c40..3ca3bbd0cb4 100644
--- a/src/common/cmdparse.cc
+++ b/src/common/cmdparse.cc
@@ -225,4 +225,6 @@ handle_bad_get(CephContext *cct, string k, const char *tname)
ostringstream oss;
bt.print(oss);
lderr(cct) << oss << dendl;
+ if (status == 0)
+ free((char *)typestr);
}