]> diplodocus.org Git - nmh/commit
Fix free(3) of unmalloc()'d string in whatnow's refile.
authorRalph Corderoy <ralph@inputplus.co.uk>
Wed, 22 Mar 2017 14:47:18 +0000 (14:47 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Wed, 22 Mar 2017 14:47:18 +0000 (14:47 +0000)
commit5563763309077db8db57b6e0c3c636a6a5a0a1b5
treeb405810deb85d956b61e49edcf13cee07ae22ee5
parente42cb4416714b2fde15a35627688d5bce64088d7
Fix free(3) of unmalloc()'d string in whatnow's refile.

`ref +foo' at comp(1)'s whatnow prompt was trying to free "+foo".
Take a copy of the string so the later free works.
Tom Rodman reported the problem to nmh-workers.
Bug introduced in 3b6be5607a251a3a793e97382e251ce66ea2bca0.
sbr/refile.c