summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ProcessImplicitDefs.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-24 14:32:01 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-24 14:32:01 +0000
commita8e7c26ee0e0655660d5ed3cdad213b619b3ae3b (patch)
tree741b56b2dfdecef086f5a19cbc8c91a6b285b7c8 /llvm/lib/CodeGen/ProcessImplicitDefs.cpp
parentebde78c4c6149dfd6dfcddd39ed07e5aec1860ed (diff)
downloadbcm5719-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/ProcessImplicitDefs.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud