Check delta count separately from status code

Previously if the delta count was not 1 the diff
list would not be freed before the method was returned
from.