Skip to content

Commit

Permalink
Merge remote-tracking branch 'dgoulet/bug25901_032_01' into maint-0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nmathewson committed Apr 24, 2018
2 parents d2951b3 + b259008 commit 9187cdb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changes/bug25901
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
o Minor bugfixes (hidden service v3):
- Fix a memory leak when an hidden service v3 is configured and gets a
SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
4 changes: 4 additions & 0 deletions src/or/hs_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,10 @@ move_hs_state(hs_service_t *src_service, hs_service_t *dst_service)
/* Let's do a shallow copy */
dst->intro_circ_retry_started_time = src->intro_circ_retry_started_time;
dst->num_intro_circ_launched = src->num_intro_circ_launched;
/* Freeing a NULL replaycache triggers an info LD_BUG. */
if (dst->replay_cache_rend_cookie != NULL) {
replaycache_free(dst->replay_cache_rend_cookie);
}
dst->replay_cache_rend_cookie = src->replay_cache_rend_cookie;

src->replay_cache_rend_cookie = NULL; /* steal pointer reference */
Expand Down

0 comments on commit 9187cdb

Please sign in to comment.