From 2bea18e5040d0628000889d06f5c9763a04773d1 Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Mon, 1 Nov 2010 13:50:51 +0000 Subject: [PATCH] Use dm_strdup/dm_free instead of strdup/free. --- libdm/libdm-report.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 951ecb3ea..d5e94e6f7 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -912,20 +912,20 @@ static int _output_field(struct dm_report *rh, struct dm_report_field *field) size_t buf_size = 0; if (rh->flags & DM_REPORT_OUTPUT_FIELD_NAME_PREFIX) { - if (!(field_id = strdup(rh->fields[field->props->field_num].id))) { + if (!(field_id = dm_strdup(rh->fields[field->props->field_num].id))) { log_error("dm_report: Failed to copy field name"); return 0; } if (!dm_pool_grow_object(rh->mem, rh->output_field_name_prefix, 0)) { log_error("dm_report: Unable to extend output line"); - free(field_id); + dm_free(field_id); return 0; } if (!dm_pool_grow_object(rh->mem, _toupperstr(field_id), 0)) { log_error("dm_report: Unable to extend output line"); - free(field_id); + dm_free(field_id); return 0; }