... | ... |
@@ -80,9 +80,12 @@ int cli_scanxdp(cli_ctx *ctx) |
80 | 80 |
if (decoded) { |
81 | 81 |
rc = cli_mem_scandesc(decoded, decodedlen, ctx); |
82 | 82 |
free(decoded); |
83 |
- if (rc != CL_SUCCESS || rc == CL_BREAK) |
|
83 |
+ if (rc != CL_SUCCESS || rc == CL_BREAK) { |
|
84 |
+ xmlFree(value); |
|
84 | 85 |
break; |
86 |
+ } |
|
85 | 87 |
} |
88 |
+ xmlFree(value); |
|
86 | 89 |
} |
87 | 90 |
} |
88 | 91 |
} |