Skip to content

Commit

Permalink
Fix leak due bad free of temporary parsed RR hdr
Browse files Browse the repository at this point in the history
Free the list (of RR body) starting from the original RR body, not from the iterator value (which will be NULL all the time)
  • Loading branch information
bogdan-iancu committed Jul 11, 2019
1 parent 55233a9 commit 2c74490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/parse_rr.c
Expand Up @@ -407,7 +407,7 @@ int print_rr_body(struct hdr_field *iroute, str *oroute, int order,
p = p->next;
}
if (no_change)
free_rr(&p);
free_rr( (rr_t**)&tmp.parsed );
iroute = iroute->sibling;
}

Expand Down

0 comments on commit 2c74490

Please sign in to comment.