Browse Source

Merge pull request #8391 from richardkchapman/osx-error

HPCC-15223 - Build break on OSX

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 9 năm trước cách đây
mục cha
commit
05176b5cea
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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: