Itseez/opencv — pull request #3108 by LeszekSwirski (2014-08-15 09:00:04+00:00)
Title: Fix reallocation of D buffer in gemm

Cherry-picked #3106 onto 2.4