Explorar o código

HPCC-15223 - Build break on OSX

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=9) %!d(string=hai) anos
pai
achega
64a25619a5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      system/jlib/jutil.cpp

+ 1 - 1
system/jlib/jutil.cpp

@@ -2523,7 +2523,7 @@ const char * queryCurrentProcessPath()
                 char * biggerPath = new char[size]; 
                 if (_NSGetExecutablePath(biggerPath, &size) == 0)
                     processPath.set(biggerPath);
-                delete biggerPath;
+                delete [] biggerPath;
             }
             break;
         case 0: