summaryrefslogtreecommitdiff
path: root/Source/cmCustomCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-07-17 11:02:46 -0400
committerBrad King <brad.king@kitware.com>2013-07-17 11:18:06 -0400
commit17c841c42d69987c84940232428928c39f1637cd (patch)
treeb8ddfe75ef963e2910f6cdf89409f195fa0a694f /Source/cmCustomCommand.h
parent5dd8c01429da90a7417b72f17e784cc98f70f57c (diff)
downloadcmake-17c841c42d69987c84940232428928c39f1637cd.tar.gz
add_custom_command: Manage backtrace memory correctly (#14299)
Add an assignment operator to cmCustomCommand to copy the Backtrace member pointee and avoid multiple-free on destruction. Reported-by: Vitezslav Cizek <vcizek@suse.cz>
Diffstat (limited to 'Source/cmCustomCommand.h')
-rw-r--r--Source/cmCustomCommand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmCustomCommand.h b/Source/cmCustomCommand.h
index dd92e34d7f..e20d2bf400 100644
--- a/Source/cmCustomCommand.h
+++ b/Source/cmCustomCommand.h
@@ -27,6 +27,7 @@ public:
/** Default and copy constructors for STL containers. */
cmCustomCommand();
cmCustomCommand(const cmCustomCommand& r);
+ cmCustomCommand& operator=(cmCustomCommand const& r);
/** Main constructor specifies all information for the command. */
cmCustomCommand(cmMakefile* mf,