• Tom Lane's avatar
    Fix out-of-memory handling in ecpglib. · 44f1fc8d
    Tom Lane authored
    ecpg_build_params() would crash on a null pointer dereference if
    realloc() failed, due to updating the persistent "stmt" struct
    too aggressively.  (Even without the crash, this would've leaked
    the old storage that we were trying to realloc.)
    
    Per Coverity.  This seems to have been broken in commit 0cc05079,
    so back-patch into v12.
    44f1fc8d
execute.c 61.8 KB