From 9f59685ea4884553bed5cafbb3abbbd5d95ce902 Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Tue, 3 Sep 2019 12:33:00 +0100 Subject: [PATCH] change free -> dmfree --- dmoperate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dmoperate.c b/dmoperate.c index 03df1556..8f2e08a6 100644 --- a/dmoperate.c +++ b/dmoperate.c @@ -145,7 +145,7 @@ static char *cwmp_get_value_by_id(char *id) cwmp_init(&dm_ctx, id); if(cwmp_get(CMD_GET_VALUE, id, &dm_ctx)) { list_for_each_entry(n, &dm_ctx.list_parameter, list) { - value = strdup(n->data); + value = dmstrdup(n->data); break; } } @@ -198,7 +198,7 @@ static opr_ret_t network_interface_reset(struct dmctx *dmctx, char *path, char * zone = get_param_val_from_op_cmd(path, "Name"); if(zone) { strcat(cmd, zone); - free(zone); + dmfree(zone); } else { return FAIL; } @@ -293,7 +293,7 @@ static opr_ret_t vendor_conf_backup(struct dmctx *dmctx, char *path, char *input return UBUS_INVALID_ARGUMENTS; dmcmd("/bin/sh", 7, ICWMP_SCRIPT, "upload", fserver.url, VCF_FILE_TYPE, fserver.user, fserver.pass, vcf_name); - free(vcf_name); + dmfree(vcf_name); return SUCCESS; }