Skip to content

Commit

Permalink
mash "out" to NULL on error
Browse files Browse the repository at this point in the history
which removes a double free if it's still pointed to from
somewhere else
  • Loading branch information
alandekok committed May 8, 2019
1 parent 1a13ac0 commit 450e213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/util/pair.c
Expand Up @@ -1727,6 +1727,7 @@ int fr_pair_list_afrom_file(TALLOC_CTX *ctx, fr_dict_t const *dict, VALUE_PAIR *
*pfiledone = false;
vp = fr_cursor_head(&cursor);
if (vp) fr_pair_list_free(&vp);
*out = NULL;

return -1;
}
Expand Down

0 comments on commit 450e213

Please sign in to comment.