Fix memory leaks in setproctitle
This gets rid of some unmanaged heap allocations from strdup() calls in the setproctitle implementation. We can trivially hold onto copied strings in static storage to eliminate the need for strdup() or a corresponding LSan suppression. Fixed: 356306 Change-Id: I5aa40583b632fd638459b2175a924f95fc56be89 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2416775 Commit-Queue: Ken Rockot <rockot@google.com> Reviewed-by:Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#808074}
Showing
Please register or sign in to comment