From cfa9172a6e8543f16c2bbdbb1477bc47dec7f128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Be=CC=81nony?= Date: Fri, 4 Dec 2015 12:26:14 +0100 Subject: [PATCH] IOS: Fixes a small memory leak --- devtools/create_project/xcode.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devtools/create_project/xcode.cpp b/devtools/create_project/xcode.cpp index 90eea39aaf7..66fd8c49f3c 100644 --- a/devtools/create_project/xcode.cpp +++ b/devtools/create_project/xcode.cpp @@ -443,8 +443,10 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) { std::string absoluteOutputDir; #ifdef POSIX - absoluteOutputDir = realpath(setup.outputDir.c_str(), NULL); + char *c_path = realpath(setup.outputDir.c_str(), NULL); + absoluteOutputDir = c_path; absoluteOutputDir += "/lib"; + free(c_path); #else absoluteOutputDir = "lib"; #endif