Commit 772cafc5 authored by Omar Kallel's avatar Omar Kallel
Browse files

Ticket refs #3831: CWMP: icwmpd has large memory leak

parent 686f1e12
Pipeline #6858 passed with stage
in 10 seconds
......@@ -729,8 +729,10 @@ int cwmp_rpc_acs_prepare_message_inform (struct cwmp *cwmp, struct session *sess
cwmp_dm_ctx_init(cwmp, &dmctx);
if (session == NULL || this == NULL)
return -1;
if (session == NULL || this == NULL) {
cwmp_dm_ctx_clean(&dmctx);
return -1;
}
#ifdef DUMMY_MODE
FILE *fp;
......@@ -828,11 +830,11 @@ int cwmp_rpc_acs_prepare_message_inform (struct cwmp *cwmp, struct session *sess
free(c);
session->tree_out = tree;
cwmp_dm_ctx_clean(&dmctx);
return 0;
error:
cwmp_dm_ctx_clean(&dmctx);
return -1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment