Closed rtczza closed 2 years ago
More More possible memory leaks. Like:
...
compressed = compress_output(&output, &compressed_size);
if (!compressed) {
fprintf(stderr, "Could not compress data\n");
return 1;
}
...
and so on.
Please send a PR addressing these. However, leaks in mimegen aren't a problem because it's not a long-running program anyway; it would be fine it it exited without freeing memory or closing anything as well.
On Thu, Dec 16, 2021, 07:18 Alliswell @.***> wrote:
More More possible memory leaks. Like:
... compressed = compress_output(&output, &compressed_size); if (!compressed) { fprintf(stderr, "Could not compress data\n"); return 1; } ...
and so on.
— Reply to this email directly, view it on GitHub https://github.com/lpereira/lwan/issues/323#issuecomment-995912781, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAADVGM7QPKFLKYCOFILFQLURH7L3ANCNFSM5KFUTO3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
These have been plugged. Closing.
src/bin/tools/mimegen.c:223:9: error: Resource leak: fp [resourceLeak]
The following can correct the above error: