Hello ,
When scanning one of our JavaScript libraries
We find the flaw is reported in the code below, as System leak by the static code analyzer
$("#id).append(jsonObject.id); // system leak
$("#id).text(jsonObject.id); //System leak
On analysis, we find that the above code is reported as a flaw due it the use of the .append and .text function in jQuery stating that the above is System leak.
Please suggest the suitable fix to address this issue.
Regards,
Srinivas