The dsalib code has an incorrect if condition in ds_get_file_list(). It looks like the condition at line 114/115 should be checking if the realloc failed so we can avoid filling in ret if we were unable to allocate memory.
Created attachment 495579 [details] Patch for cov#10832
Pushed patch to master. Thanks to Noriko for her review! Counting objects: 9, done. Delta compression using up to 2 threads. Compressing objects: 100% (5/5), done. Writing objects: 100% (5/5), 686 bytes, done. Total 5 (delta 3), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/admin.git 0a28e3d..9047b26 master -> master
coverity is clean - marking verified