9front - general discussion about 9front
 help / color / mirror / Atom feed
* strtomp(2) memory leak
@ 2016-01-02  9:55 Julius Schmidt
  0 siblings, 0 replies; only message in thread
From: Julius Schmidt @ 2016-01-02  9:55 UTC (permalink / raw)
  To: 9front

I think strtomp(..., nil) leaks memory if there is no number to convert.

I'm not a fan of ever returning nil. Removing this special case fixes the 
leak but I'm not sure whether it would break some code that relies on it.

aiju



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-02  9:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-02  9:55 strtomp(2) memory leak Julius Schmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).