Bug 1268387 - avoid memory leak of ToNewCString(key). r?valentin
MozReview-Commit-ID: L6V7HpKE8KT
--- a/netwerk/protocol/http/nsHttpChannel.cpp
+++ b/netwerk/protocol/http/nsHttpChannel.cpp
@@ -6699,17 +6699,17 @@ nsHttpChannel::ForceCacheEntryValidFor(u
"for this channel [this=%p].", this));
} else {
mCacheEntry->ForceValidFor(aSecondsToTheFuture);
nsAutoCString key;
mCacheEntry->GetKey(key);
LOG(("nsHttpChannel::ForceCacheEntryValidFor successfully forced valid "
- "entry with key %s for %d seconds. [this=%p]", ToNewCString(key),
+ "entry with key %s for %d seconds. [this=%p]", key.get(),
aSecondsToTheFuture, this));
}
return NS_OK;
}
//-----------------------------------------------------------------------------
// nsHttpChannel::nsIResumableChannel