diff --git a/src/libasr/codegen/asr_to_llvm.cpp b/src/libasr/codegen/asr_to_llvm.cpp index b84a10dc33..8fcb2bd9cc 100644 --- a/src/libasr/codegen/asr_to_llvm.cpp +++ b/src/libasr/codegen/asr_to_llvm.cpp @@ -1083,13 +1083,13 @@ class ASRToLLVMVisitor : public ASR::BaseVisitor } inline void call_lcompilers_free_strings() { - // if (strings_to_be_deallocated.n > 0) { - // llvm::Function* free_fn = _Deallocate(); - // for( auto &value: strings_to_be_deallocated ) { - // builder->CreateCall(free_fn, {value}); - // } - // strings_to_be_deallocated.reserve(al, 1); - // } + if (strings_to_be_deallocated.n > 0) { + llvm::Function* free_fn = _Deallocate(); + for( auto &value: strings_to_be_deallocated ) { + builder->CreateCall(free_fn, {value}); + } + strings_to_be_deallocated.reserve(al, 1); + } } llvm::Function* _Allocate(bool realloc_lhs) {