Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dAdAbird committed Aug 21, 2023
1 parent d3a999f commit 34ca182
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/encryption/enc_tuple.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "access/pg_tde_defines.h"
#define ENCRYPTION_DEBUG 1
#define FULL_TUPLE_ENCRYPTION 0

#include "postgres.h"

Expand Down Expand Up @@ -80,7 +79,7 @@ static void PGTdeDecryptTupInternal2(BlockNumber bn, Page page, HeapTuple tuple,
// Most of the time we can't decrypt in place, so we allocate some memory... and leek it for now :(
if(allocNew)
{
newPtr = palloc0(tuple->t_len);
newPtr = malloc(tuple->t_len);
memcpy(newPtr, tuple->t_data, tuple->t_len);
}

Expand Down

0 comments on commit 34ca182

Please sign in to comment.