mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Remove needless strdup in addressmap_register_virtual_address()
Fixes bug 14195. Bugfix on 0.1.0.1-rc.
This commit is contained in:
parent
c9dd2d1a6a
commit
f2fb85f970
3
changes/bug14195
Normal file
3
changes/bug14195
Normal file
@ -0,0 +1,3 @@
|
||||
o Minor bugfixes (client):
|
||||
- Fix a memory leak when using AutomapHostsOnResolve.
|
||||
Fixes bug 14195; bugfix on 0.1.0.1-rc.
|
@ -951,7 +951,7 @@ addressmap_register_virtual_address(int type, char *new_address)
|
||||
!strcasecmp(new_address, ent->new_address)) {
|
||||
tor_free(new_address);
|
||||
tor_assert(!vent_needs_to_be_added);
|
||||
return tor_strdup(*addrp);
|
||||
return *addrp;
|
||||
} else {
|
||||
log_warn(LD_BUG,
|
||||
"Internal confusion: I thought that '%s' was mapped to by "
|
||||
|
Loading…
Reference in New Issue
Block a user