diff options
author | Pale Moon <git-repo@palemoon.org> | 2018-05-15 21:22:12 +0200 |
---|---|---|
committer | Pale Moon <git-repo@palemoon.org> | 2018-05-15 21:22:12 +0200 |
commit | be37ea5143c40f620ec8aa788a2209f2b07edb33 (patch) | |
tree | cc701a60044122fa7b02bcbc69a1431a4d3572c2 | |
parent | ba2e7f6142b396273343a942f5f92d18a33cd1aa (diff) | |
download | palemoon-gre-be37ea5143c40f620ec8aa788a2209f2b07edb33.tar.gz |
Consistently use PR memory functions.
-rw-r--r-- | extensions/auth/nsAuthSambaNTLM.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/auth/nsAuthSambaNTLM.cpp b/extensions/auth/nsAuthSambaNTLM.cpp index 7cbf12894..e02f869fe 100644 --- a/extensions/auth/nsAuthSambaNTLM.cpp +++ b/extensions/auth/nsAuthSambaNTLM.cpp @@ -5,6 +5,7 @@ #include "nsAuth.h" #include "nsAuthSambaNTLM.h" +#include "nspr.h" #include "prenv.h" #include "plbase64.h" #include "prerror.h" @@ -23,7 +24,7 @@ nsAuthSambaNTLM::~nsAuthSambaNTLM() // ntlm_auth reads from stdin regularly so closing our file handles // should cause it to exit. Shutdown(); - free(mInitialMessage); + PR_Free(mInitialMessage); } void @@ -248,7 +249,7 @@ nsAuthSambaNTLM::GetNextToken(const void *inToken, nsCString request; request.AssignLiteral("TT "); request.Append(encoded); - free(encoded); + PR_Free(encoded); request.Append('\n'); if (!WriteString(mToChildFD, request)) @@ -265,7 +266,7 @@ nsAuthSambaNTLM::GetNextToken(const void *inToken, return NS_ERROR_FAILURE; // *outToken has to be freed by nsMemory::Free, which may not be free() *outToken = nsMemory::Clone(buf, *outTokenLen); - free(buf); + PR_Free(buf); if (!*outToken) { return NS_ERROR_OUT_OF_MEMORY; } |