[master] cf20e04 plug minor leaks reported by coverity
Nils Goroll
nils.goroll at uplex.de
Sat May 5 09:14:26 UTC 2018
On 05/05/18 10:44, Poul-Henning Kamp wrote:
> We shouldn't use TRUST_ME for trivial issues
I wonder what our options are. Here's what comes to my mind:
* don't reference malloc'ed storage as const:
No issue with free, but no const safety for the rest of the code
* use pointers to const, but keep some other pointer to non-const
for the free
* don't use TRUST_ME, but effectively use the same double cast
to convince the compiler
Am I overlooking a better option?
Thx, Nils
--
** * * UPLEX - Nils Goroll Systemoptimierung
Scheffelstraße 32
22301 Hamburg
tel +49 40 28805731
mob +49 170 2723133
fax +49 40 42949753
xmpp://slink@jabber.int.uplex.de/
http://uplex.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-commit/attachments/20180505/6b4a2157/attachment.bin>
More information about the varnish-commit
mailing list