8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d6d425 commit bb59845Copy full SHA for bb59845
src/backend/libpq/hba.c
@@ -2235,16 +2235,18 @@ load_ident(void)
2235
}
2236
2237
/* Loaded new file successfully, replace the one we use */
2238
- if (parsed_ident_lines != NULL)
+ if (parsed_ident_lines != NIL)
2239
{
2240
foreach(parsed_line_cell, parsed_ident_lines)
2241
2242
newline = (IdentLine *) lfirst(parsed_line_cell);
2243
if (newline->ident_user[0] == '/')
2244
pg_regfree(&newline->re);
2245
2246
- MemoryContextDelete(parsed_ident_context);
2247
+ if (parsed_ident_context != NULL)
2248
+ MemoryContextDelete(parsed_ident_context);
2249
+
2250
parsed_ident_context = ident_context;
2251
parsed_ident_lines = new_parsed_lines;
2252
0 commit comments