In bttext_abbrev_convert, move pfree to the right place.

Robert Haas <rhaas@postgresql.org>

Commit: b48ecf862b3896631660ee8d38054aded82a4f8b
Author: Robert Haas <rhaas@postgresql.org>
Date: 2015-06-30T03:53:05Z
Releases: 9.5.0
In bttext_abbrev_convert, move pfree to the right place.

Without this, we might access memory that's already been freed, or
leak memory if in the C locale.

Peter Geoghegan

Files

PathChange+/−
src/backend/utils/adt/varlena.c modified +5 −5