debuggers.hg

changeset 22840:c342aa1476e8

libxl: fix free of constant string in cdrom insert path

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author Kamala Narasimhan <kamala.narasimhan@citrix.com>
date Fri Jan 21 17:44:07 2011 +0000 (2011-01-21)
parents ca64bd257a6f
children 17181eaedb78
files tools/libxl/libxl.c
line diff
     1.1 --- a/tools/libxl/libxl.c	Fri Jan 21 16:04:59 2011 +0000
     1.2 +++ b/tools/libxl/libxl.c	Fri Jan 21 17:44:07 2011 +0000
     1.3 @@ -1663,7 +1663,7 @@ int libxl_cdrom_insert(libxl_ctx *ctx, u
     1.4      int ret = ERROR_FAIL;
     1.5  
     1.6      if (!disk->physpath) {
     1.7 -        disk->physpath = "";
     1.8 +        disk->physpath = strdup("");
     1.9          disk->phystype = PHYSTYPE_PHY;
    1.10      }
    1.11      disks = libxl_device_disk_list(ctx, domid, &num);