diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-24 12:15:57 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-07-24 12:15:57 +0200 |
commit | 16db3cc595ab34f21a747d88fb9cdd340ac438f9 (patch) | |
tree | e5f1dd5fb055d7717e539f8491427a766697c43f /lib/Plugins | |
parent | 280334787ea74be1c5234849672c69dbfdb2f201 (diff) | |
download | abrt-16db3cc595ab34f21a747d88fb9cdd340ac438f9.tar.gz abrt-16db3cc595ab34f21a747d88fb9cdd340ac438f9.tar.xz abrt-16db3cc595ab34f21a747d88fb9cdd340ac438f9.zip |
remove superfluous copying in ExecVP params
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins')
-rw-r--r-- | lib/Plugins/CCpp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index f7293265..bf6b2b04 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -230,9 +230,8 @@ void CAnalyzerCCpp::GetBacktrace(const std::string& pDebugDumpDir, std::string& } char* command = (char*)"gdb"; char* args[5] = { (char*)"gdb", (char*)"-batch", (char*)"-x", NULL, NULL }; - args[3] = strdup(tmpFile.c_str()); - ExecVP(command, args, UID, pBacktrace); - free(args[3]); + args[3] = (char*) tmpFile.c_str(); + ExecVP(command, args, atoi(UID.c_str()), pBacktrace); } void CAnalyzerCCpp::GetIndependentBacktrace(const std::string& pBacktrace, std::string& pIndependentBacktrace) |