Unless this is an emergency, let's wait for the next Leptonica point release rather than patching into the Debian package. Upstream has been notified.
- Bug#805653: liblept4: Wrong file mode in call of fmemopen Stefan Weil
- Bug#805653: liblept4: Wrong file mode in call of fme... Jeff Breidenbach