mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Free walmethods before exiting
Not strictly necessary since we quite after, but could become important in the future if we do restarts etc. Michael Paquier with nitpicking from me
This commit is contained in:
@@ -495,6 +495,13 @@ LogStreamerMain(logstreamer_param *param)
|
||||
}
|
||||
|
||||
PQfinish(param->bgconn);
|
||||
|
||||
if (format == 'p')
|
||||
FreeWalDirectoryMethod();
|
||||
else
|
||||
FreeWalTarMethod();
|
||||
pg_free(stream.walmethod);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user