Revision 6265eb26

b/block/curl.c
309 309

  
310 310
    static int inited = 0;
311 311

  
312
    file = strdup(filename);
312
    file = qemu_strdup(filename);
313 313
    s->readahead_size = READ_AHEAD_SIZE;
314 314

  
315 315
    /* Parse a trailing ":readahead=#:" param, if present. */
b/block/vvfat.c
883 883
    mapping->dir_index = 0;
884 884
    mapping->info.dir.parent_mapping_index = -1;
885 885
    mapping->first_mapping_index = -1;
886
    mapping->path = strdup(dirname);
886
    mapping->path = qemu_strdup(dirname);
887 887
    i = strlen(mapping->path);
888 888
    if (i > 0 && mapping->path[i - 1] == '/')
889 889
	mapping->path[i - 1] = '\0';
......
1633 1633

  
1634 1634
	    /* rename */
1635 1635
	    if (strcmp(basename, basename2))
1636
		schedule_rename(s, cluster_num, strdup(path));
1636
		schedule_rename(s, cluster_num, qemu_strdup(path));
1637 1637
	} else if (is_file(direntry))
1638 1638
	    /* new file */
1639
	    schedule_new_file(s, strdup(path), cluster_num);
1639
	    schedule_new_file(s, qemu_strdup(path), cluster_num);
1640 1640
	else {
1641 1641
	    assert(0);
1642 1642
	    return 0;
......
1753 1753
	mapping->mode &= ~MODE_DELETED;
1754 1754

  
1755 1755
	if (strcmp(basename, basename2))
1756
	    schedule_rename(s, cluster_num, strdup(path));
1756
	    schedule_rename(s, cluster_num, qemu_strdup(path));
1757 1757
    } else
1758 1758
	/* new directory */
1759
	schedule_mkdir(s, cluster_num, strdup(path));
1759
	schedule_mkdir(s, cluster_num, qemu_strdup(path));
1760 1760

  
1761 1761
    lfn_init(&lfn);
1762 1762
    do {
b/net.c
96 96
                        struct sockaddr_in *saddr,
97 97
                        const char *input_str)
98 98
{
99
    char *str = strdup(input_str);
99
    char *str = qemu_strdup(input_str);
100 100
    char *host_str = str;
101 101
    char *src_str;
102 102
    const char *src_str2;
b/slirp/misc.c
179 179
		   close(s);
180 180

  
181 181
		i = 0;
182
		bptr = strdup(ex); /* No need to free() this */
182
		bptr = qemu_strdup(ex); /* No need to free() this */
183 183
		if (do_pty == 1) {
184 184
			/* Setup "slirp.telnetd -x" */
185 185
			argv[i++] = "slirp.telnetd";

Also available in: Unified diff