Fixed error-catching for memory allocaion so that it works when the one that fails isn't the first one allocated
Fixed error-catching for memory allocaion so that it works when the one that fails isn't the first one allocated

nanoporetech/scrappie,nanoporetech/scrappie,nanoporetech/scrappie