summaryrefslogtreecommitdiffstats
path: root/extensions/auth/nsAuthSambaNTLM.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-05-15 21:20:45 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-05-15 21:22:26 +0200
commit0c994ed0963e1552b95708495d58ef193c48fc3c (patch)
tree68d42bb74dc1a4f331677b40328b15e20fe478ca /extensions/auth/nsAuthSambaNTLM.cpp
parent9c075dc4cdaeef79bc570ed2219bb757cb325c47 (diff)
downloadUXP-0c994ed0963e1552b95708495d58ef193c48fc3c.tar
UXP-0c994ed0963e1552b95708495d58ef193c48fc3c.tar.gz
UXP-0c994ed0963e1552b95708495d58ef193c48fc3c.tar.lz
UXP-0c994ed0963e1552b95708495d58ef193c48fc3c.tar.xz
UXP-0c994ed0963e1552b95708495d58ef193c48fc3c.zip
Consistently use PR memory functions.
Diffstat (limited to 'extensions/auth/nsAuthSambaNTLM.cpp')
-rw-r--r--extensions/auth/nsAuthSambaNTLM.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/auth/nsAuthSambaNTLM.cpp b/extensions/auth/nsAuthSambaNTLM.cpp
index 1406c15e0..69777dcca 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,
if (!buf)
return NS_ERROR_FAILURE;
*outToken = nsMemory::Clone(buf, *outTokenLen);
- free(buf);
+ PR_Free(buf);
if (!*outToken) {
return NS_ERROR_OUT_OF_MEMORY;
}