Skip to content

Commit

Permalink
comment out free temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
sgilmore10 committed May 14, 2024
1 parent 03255c1 commit 5e50bc4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions matlab/src/cpp/arrow/matlab/c/proxy/array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
// specific language governing permissions and limitations
// under the License.

#include <cstddef>
#include "arrow/c/abi.h"

#include "arrow/matlab/c/proxy/array.h"
Expand All @@ -28,12 +29,12 @@ Array::Array() : arrowArray{(struct ArrowArray*)malloc(sizeof(struct ArrowArray)
}

Array::~Array() {
if (arrowArray) {
if (arrowArray->release != nullptr) {
if (arrowArray != NULL) {
if (arrowArray->release != NULL) {
arrowArray->release(arrowArray);
arrowArray->release = nullptr;
arrowArray->release = NULL;
}
free(arrowArray);
//free(arrowArray);
}
}

Expand Down

0 comments on commit 5e50bc4

Please sign in to comment.