]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
conf: fix allocation
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 28 Apr 2009 17:14:05 +0000 (10:14 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 28 Apr 2009 17:14:05 +0000 (10:14 -0700)
src/mon/MonClient.cc

index 0b46ef9327237e3799fc60ad129bb8f235f00737..73888a98ceadcfbf4c5dcf7d25cc7ee1d4c9045d 100644 (file)
@@ -146,7 +146,7 @@ int MonClient::get_monmap(MonMap *pmonmap)
          monstr += ",";
        monstr += val;
       }
-      g_conf.mon_host = monstr.c_str();
+      g_conf.mon_host = strdup(monstr.c_str());
     }
   }