Skip to content

Commit

Permalink
make sure question name is freed
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarning committed Mar 24, 2024
1 parent fb9b01c commit 50982bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ void resolve_query(struct Message *msg)
case TXT_Resource_RecordType:
*/
default:
free(rr->name);
free(rr);
msg->rcode = NotImplemented_ResponseType;
printf("Cannot answer question of type %d.\n", q->qType);
Expand Down

0 comments on commit 50982bb

Please sign in to comment.