• Stephen Frost's avatar
    pg_dump: Don't leak memory in buildDefaultACLCommands() · 09f84218
    Stephen Frost authored
    buildDefaultACLCommands() didn't destroy the string buffer created in
    certain cases, leading to a memory leak.  Fix by destroying the buffer
    before returning from the function.
    
    Spotted by Coverity.
    
    Author: Michael Paquier
    
    Back-patch to 9.6 where buildDefaultACLCommands() was added.
    09f84218
dumputils.c 23.8 KB