Kbase P121279: Memory leak and error 12118 using cryptographic functions
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/22/2009 |
|
Status: Verified
SYMPTOM(s):
Using the functions decrypt, base64-decode and generate-pbe-key in a repeat loop will cause a memory leak.
The session ultimately fails with error message 12118.
Unable to allocate memory for result from function (12118).
This error can also occur when calling from a .NET Open Client a procedure using cryptographic functions.
FACT(s) (Environment):
OpenEdge 10.1x
All Supported Operating Systems
CAUSE:
Bug# OE00135863
FIX:
As a workaround define a MEMPTR variable and assign the value from DECRYPT to it.
Make sure to call then SET-SIZE() = 0 to free the MEMPTR to avoid an application memory leak.
SET-SIZE(<MEMPTR variable>) = 0.