aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Christophe DUBOIS <jcd@tribudubois.net>2009-09-02 23:59:06 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:57:21 -0500
commit73ffc805a2dbd20c7376afc61f47167288c1978a (patch)
tree44c0e37196856a174995c377b3ee4e9d7d0ba355
parent321c1cb10b93b5a32b8d1299653f434ab44a8535 (diff)
mv strdup to qemu_strdup in vl.c
There are few places in vl.c not using the qemu version of malloc/free/strdup. Fix it. Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--vl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index 4205fea57a..12b19bce9c 100644
--- a/vl.c
+++ b/vl.c
@@ -858,7 +858,7 @@ static void configure_alarms(char const *opt)
exit(0);
}
- arg = strdup(opt);
+ arg = qemu_strdup(opt);
/* Reorder the array */
name = strtok(arg, ",");
@@ -887,7 +887,7 @@ next:
name = strtok(NULL, ",");
}
- free(arg);
+ qemu_free(arg);
if (cur) {
/* Disable remaining timers */
@@ -4686,7 +4686,7 @@ char *qemu_find_file(int type, const char *name)
/* If name contains path separators then try it as a straight path. */
if ((strchr(name, '/') || strchr(name, '\\'))
&& access(name, R_OK) == 0) {
- return strdup(name);
+ return qemu_strdup(name);
}
switch (type) {
case QEMU_FILE_TYPE_BIOS: