Permalink
Browse files

Fixed memory leak when releasing a peer

  • Loading branch information...
1 parent 4375bd9 commit d67cb4224ee5398288aa01adc6a12f4f8e373e9e @Detegr committed Feb 1, 2014
Showing with 1 addition and 4 deletions.
  1. +1 −4 core/peer.c
View
@@ -30,10 +30,7 @@ void peer_free(struct peer* p)
pthread_join(p->thread, NULL);
p->thread=0;
}
- if(p->key.m_keydata.m_ctx)
- {
- pubkey_free(&p->key);
- }
+ pubkey_free(&p->key);
}
void clear_file_transfer(file_t* transfer)

0 comments on commit d67cb42

Please sign in to comment.