浏览代码

Don't attempt to free a string we haven't been given.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Christine Caulfield 10 年之前
父节点
当前提交
118e56ec7c
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      qdevices/corosync-qdevice-net.c

+ 0 - 1
qdevices/corosync-qdevice-net.c

@@ -1359,7 +1359,6 @@ qdevice_net_instance_init_from_cmap(struct qdevice_net_instance *instance,
 	 * Host
 	 */
 	if (cmap_get_string(cmap_handle, "quorum.device.net.host", &str) != CS_OK) {
-		free(str);
 		errx(1, "Qdevice net daemon address is not defined (quorum.device.net.host)");
 	}
 	host_addr = str;