Resolve static analyzer warning about 'Potential leak of an object stored into 'dataProvider''

Resolved in this manner in an attempt to remain in the spirit of how the code was originally written.