Commit f2fb85f9 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Remove needless strdup in addressmap_register_virtual_address()

Fixes bug 14195. Bugfix on 0.1.0.1-rc.
parent c9dd2d1a
Loading
Loading
Loading
Loading

changes/bug14195

0 → 100644
+3 −0
Original line number Diff line number Diff line
  o Minor bugfixes (client):
    - Fix a memory leak when using AutomapHostsOnResolve.
      Fixes bug 14195; bugfix on 0.1.0.1-rc.
+1 −1
Original line number Diff line number Diff line
@@ -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 "