|
| From: | Gerd Hoffmann |
| Subject: | Re: [Qemu-devel] [PATCH]:Use qemu_malloc & qemu_free instead of malloc & free |
| Date: | Tue, 05 May 2009 14:50:26 +0200 |
| User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090324 Fedora/3.0-2.1.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
Hi,
- path = malloc(len+1);
+ path = qemu_malloc(len+1);
snprintf(path, len+1, "%.*s", len, str);
} else
path = strdup(str);
You need s/strdup/qemu_strdup/ here (and maybe elsewhere too), otherwise you'll mix strdup + qemu_free().
cheers, Gerd
| [Prev in Thread] | Current Thread | [Next in Thread] |