Skip to content

Commit

Permalink
Fix memory leak in D demangler
Browse files Browse the repository at this point in the history
  • Loading branch information
dwblaikie committed Nov 10, 2021
1 parent da979f6 commit 1bed03b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Demangle/DLangDemangle.cpp
Expand Up @@ -40,5 +40,6 @@ char *llvm::dlangDemangle(const char *MangledName) {
return Demangled.getBuffer();
}

free(Demangled.getBuffer());
return nullptr;
}

0 comments on commit 1bed03b

Please sign in to comment.