[Piglit] [PATCH v1 2/2] test: fix resources usage for depthstencil-render-miplevels

Eric Anholt eric at anholt.net
Fri Nov 23 17:35:11 UTC 2018

Sergii Romantsov <sergii.romantsov at gmail.com> writes:

> Usage test 'depthstencil-render-miplevels 200 s=z24_s8' causes core dump on exit.
> Issues:
> 1. Allocation of memory many times to the same variable
> 2. Not complete array to store pointers
> 3. Absence of memory freeing

Can you explain how not freeing memory could cause a core dump on exit?
And, in general, I would recommend just freeing data after usage, rather
than having a deinit function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20181123/a4b603ab/attachment.sig>

More information about the Piglit mailing list