Skip to content
Snippets Groups Projects
Commit cac4e0a1 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix mem leak reported by cppcheck

parent 5d9e4628
No related branches found
No related tags found
No related merge requests found
Pipeline #5087 passed
......@@ -111,6 +111,7 @@ int msgdump(FILE* fp, const char* fname)
fseek(fp, sizeof(hdr), SEEK_SET);
if(fread(body, len, 1, fp) != 1) {
perror("reading body text");
free(body);
return __COUNTER__;
}
fprintf(bodyfp, "\n-start of message text-\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment