tag:blogger.com,1999:blog-3993498847203183398.post4821078186949116157..comments2024-03-28T09:19:27.451+00:00Comments on RevK<sup>®</sup>'s ramblings: poptRevKhttp://www.blogger.com/profile/12369263214193333422noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3993498847203183398.post-68516766690160541692023-05-30T16:13:36.684+01:002023-05-30T16:13:36.684+01:00Write your own allocator with an is_in_heap(p) fun...Write your own allocator with an is_in_heap(p) function, then you can do <br /><br />if (is_in_heap(p)) free(p);<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-11272530139128369262023-05-16T13:23:27.454+01:002023-05-16T13:23:27.454+01:00Can you coerce popt into giving you a pointer to t...Can you coerce popt into giving you a pointer to the default? Then you could stash it away and free it yourself -- but honestly by this point it's probably easier to fix it in popt. Only, that's hard, because countless applications already depend on its existing rather, er, woolly semantics, and you can hardly go changing its ABI at whim to fix a leak of a few bytes.Nick Alcockhttps://www.blogger.com/profile/06590610308528769844noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-65510088503809090952023-05-09T16:04:22.316+01:002023-05-09T16:04:22.316+01:00I can't help but notice an inconsistency betwe...I can't help but notice an inconsistency between the first and (second to) last sentences in your post...Ionichttps://www.blogger.com/profile/06785235601827719311noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-44418572759761580302023-05-03T16:13:04.589+01:002023-05-03T16:13:04.589+01:00This is why I write all non-trivial command line t...This is why I write all non-trivial command line tools in Rust.InfiniteDissenthttps://www.blogger.com/profile/00463076301051295104noreply@blogger.comtag:blogger.com,1999:blog-3993498847203183398.post-86718241696102945252023-04-29T02:09:11.447+01:002023-04-29T02:09:11.447+01:00I never had any trouble just parsing argv directly...I never had any trouble just parsing argv directly.Anonymousnoreply@blogger.com