mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mon: build_initial_monmap: fix mismatched alloc
Signed-off-by: Colin McCabe <colinm@hq.newdream.net>
This commit is contained in:
parent
caa4609387
commit
285f351b72
@ -82,7 +82,7 @@ int MonClient::build_initial_monmap()
|
||||
char *old_addrs = new char[strlen(g_conf.mon_host)+1];
|
||||
strcpy(old_addrs, g_conf.mon_host);
|
||||
hosts = mount_resolve_dest(old_addrs);
|
||||
delete old_addrs;
|
||||
delete [] old_addrs;
|
||||
bool success = parse_ip_port_vec(hosts, addrs);
|
||||
free(hosts);
|
||||
if (success) {
|
||||
|
Loading…
Reference in New Issue
Block a user