Search found 2 matches

by shenjoku
2014-05-27T19:23:53-07:00
Forum: Bugs
Topic: Memory leak in BlobToStringInfo()
Replies: 2
Views: 5295

Re: Memory leak in BlobToStringInfo()

Ah, I see. I'll pick up the patch later, thanks.
by shenjoku
2014-05-27T17:38:06-07:00
Forum: Bugs
Topic: Memory leak in BlobToStringInfo()
Replies: 2
Views: 5295

Memory leak in BlobToStringInfo()

Inside of BlobToStringInfo() it is calling AcquireStringInfo(0), and because it is passing zero there is a block of code that causes the datum member of the StringInfo struct to be allocated: if (~string_info->length >= (MaxTextExtent-1)) string_info->datum=(unsigned char *) AcquireQuantumMemory ...