From: Sage Weil Date: Thu, 9 May 2013 15:49:14 +0000 (-0700) Subject: mon: fix Formatter leak X-Git-Tag: v0.63~49^2^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8632707656fa0dc2c8b5d05241ff432cc420f420;p=ceph.git mon: fix Formatter leak Signed-off-by: Sage Weil --- diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 56cd291cd24a..376b670bbdc5 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -2624,6 +2624,7 @@ void Monitor::handle_command(MMonCommand *m) } else if (string(args[0]) == "df") { if (args.size() > 1) { if (string(args[1]) != "detail") { + delete jf; r = -EINVAL; rs = "usage: df [detail]"; goto out;