Fix double free
Merge remote-tracking branch 'pbrunet/double_free' into pow-numpy