Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sinsterizme
· 5y ago · 0 comments
Shouldn't this PR also use `free` on the duped string before returning? (I never use C so probably missing something but just based on the docs of strdupa...)
Comments
[–]
rtldg
5y ago
The variable p is now declared with "_cleanup_free_" which is using some compiler cleanup/destructor attribute stuff to run free
[–]
sinsterizme
OP
5y ago
ah okay, thank you :)