diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-24 14:32:01 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-24 14:32:01 +0000 |
| commit | a8e7c26ee0e0655660d5ed3cdad213b619b3ae3b (patch) | |
| tree | 741b56b2dfdecef086f5a19cbc8c91a6b285b7c8 /llvm/lib/CodeGen/StackSlotColoring.cpp | |
| parent | ebde78c4c6149dfd6dfcddd39ed07e5aec1860ed (diff) | |
| download | bcm5719-llvm-a8e7c26ee0e0655660d5ed3cdad213b619b3ae3b.tar.gz bcm5719-llvm-a8e7c26ee0e0655660d5ed3cdad213b619b3ae3b.zip | |
Don't leak when expanding response files.
Before this patch we would strdup each argument. If one was a response file,
we would replace it with the response file contents, leaking the original
strdup result.
We now don't strdup the originals and let StringSaver free any memory it
allocated. This also saves a bit of malloc traffic when response files are
not used.
Leak found by the valgrind build bot.
llvm-svn: 187042
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
0 files changed, 0 insertions, 0 deletions

