fixup! refactor: use std::string in tau_tracker (#1867) (#2017)

fix: memory leak regression
This commit is contained in:
Charles Kerr 2021-10-22 17:01:55 -05:00 committed by GitHub
parent 94ee81f98d
commit 91a447e3ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -785,12 +785,9 @@ static struct tau_tracker* tau_session_get_tracker(struct tr_announcer_udp* tau,
tr_ptrArrayAppend(&tau->trackers, tracker);
dbgmsg(tracker->key, "New tau_tracker created");
}
else
{
tr_free(key);
tr_free(host);
}
tr_free(key);
tr_free(host);
return tracker;
}