]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix Formatter leak
authorSage Weil <sage@inktank.com>
Thu, 9 May 2013 15:49:14 +0000 (08:49 -0700)
committerSage Weil <sage@inktank.com>
Thu, 9 May 2013 17:48:59 +0000 (10:48 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/Monitor.cc

index 56cd291cd24ae8035bfd04b23870502ecffc25f4..376b670bbdc5a4b284ac6e666f888fa00ebd4a0e 100644 (file)
@@ -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;