mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
Clean up recent Coverity complaints.
Commit5c649fe15
introduced a memory leak into pg_basebackup's parse_compress_options. (I simplified nearby code while at it.) Commit9a974cbcb
introduced a memory leak into pg_dump's binary_upgrade_set_pg_class_oids. Coverity also complained about a call of SnapBuildProcessChange that ignored the result, unlike every other call of that function. This is evidently intentional, so add a (void) cast to indicate that. (It's also old, dating to b89e15105; I suppose the reason it showed up now is 7a5f6b474's recent rearrangement of nearby code.)
This commit is contained in:
@ -498,7 +498,7 @@ heap_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf)
|
||||
if (!TransactionIdIsValid(xid))
|
||||
break;
|
||||
|
||||
SnapBuildProcessChange(builder, xid, buf->origptr);
|
||||
(void) SnapBuildProcessChange(builder, xid, buf->origptr);
|
||||
ReorderBufferXidSetCatalogChanges(ctx->reorder, xid, buf->origptr);
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user