Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
add check that BN_is_prime return value is not negative
fix memory leak (BN_clear doesn't release allocated memory)
fix memory leak during replaying CODE_binlog_set_chat_title
fix free in the hypotetic case when binlog message contain NUL character in the middle
Merge pull request #40 from antma/master

fix very small memory leaks