summaryrefslogtreecommitdiff
path: root/qemu-option.c
diff options
context:
space:
mode:
authorJean-Christophe DUBOIS <jcd@tribudubois.net>2009-09-03 00:37:00 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-09 14:57:21 -0500
commit7502d47f4554e70a8a41add3152bbd5ac8fc3939 (patch)
treebeb2ec717da509e0292c4ecafd414fa1accce6e6 /qemu-option.c
parent80b1d2cac8faadc814fbff6b0923d52f43728749 (diff)
downloadqemu-7502d47f4554e70a8a41add3152bbd5ac8fc3939.tar.gz
qemu-7502d47f4554e70a8a41add3152bbd5ac8fc3939.tar.bz2
qemu-7502d47f4554e70a8a41add3152bbd5ac8fc3939.zip
mv from strdup to qemu_strdup in qemu-option.c
one place is using strdup() instead of qemu_strdup Fix it Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-option.c')
-rw-r--r--qemu-option.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/qemu-option.c b/qemu-option.c
index 61141e0bd6..0473605c14 100644
--- a/qemu-option.c
+++ b/qemu-option.c
@@ -274,7 +274,7 @@ int set_option_parameter(QEMUOptionParameter *list, const char *name,
case OPT_STRING:
if (value != NULL) {
- list->value.s = strdup(value);
+ list->value.s = qemu_strdup(value);
} else {
fprintf(stderr, "Option '%s' needs a parameter\n", name);
return -1;
@@ -334,12 +334,12 @@ void free_option_parameters(QEMUOptionParameter *list)
while (cur && cur->name) {
if (cur->type == OPT_STRING) {
- free(cur->value.s);
+ qemu_free(cur->value.s);
}
cur++;
}
- free(list);
+ qemu_free(list);
}
/*