Skip to content

Commit

Permalink
Avoid double freeing due to gidx_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Algunenano committed Jul 29, 2020
1 parent 81b9af7 commit c35256b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postgis/gserialized_gist_nd.c
Expand Up @@ -173,7 +173,8 @@ gidx_merge(GIDX **b_union, GIDX *b_new)
/* Q: Unknown is 0 dimensions. Should we never modify unknown instead? (ticket #4232) */
if (gidx_is_unknown(*b_union))
{
*b_union = b_new;
pfree(*b_union);
*b_union = gidx_copy(b_new);
return;
}

Expand Down

0 comments on commit c35256b

Please sign in to comment.