Przeglądaj źródła

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

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
Christine Caulfield 10 lat temu
rodzic
commit
118e56ec7c
1 zmienionych plików z 0 dodań i 1 usunięć
  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;