Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alubennikova committed Jun 11, 2020
1 parent 698ace9 commit 8f1c91d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bin/pg_upgrade/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,7 @@ free_db_and_rel_infos(DbInfoArr *db_arr)
for (dbnum = 0; dbnum < db_arr->ndbs; dbnum++)
{
free_rel_infos(&db_arr->dbs[dbnum].rel_arr);

if (&db_arr->dbs[dbnum].non_def_acl_arr.nacls > 0)
free_acl_infos(&db_arr->dbs[dbnum].non_def_acl_arr);
pg_free(db_arr->dbs[dbnum].db_name);
Expand Down Expand Up @@ -751,6 +752,7 @@ free_acl_infos(AclInfoArr *acl_arr)
pg_free(acl_arr->aclinfos[aclnum].role_names);
}
pg_free(acl_arr->aclinfos);
acl_arr->aclinfos = NULL;
acl_arr->nacls = 0;
pg_log(PG_REPORT, "free_acl_infos 2 %d\n", acl_arr->nacls);
}
Expand Down

0 comments on commit 8f1c91d

Please sign in to comment.