libsemanage: increment the right index variable in for loop

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2017-01-04 22:46:23 +01:00 committed by James Carter
parent 58fb53bc2b
commit 1004a3b3f1

View File

@ -1158,7 +1158,7 @@ cleanup:
free(all_modinfos);
if (status != 0) {
for (i = 0; i < j; j++) {
for (i = 0; i < j; i++) {
semanage_module_info_destroy(sh, &(*modinfo)[i]);
}
free(*modinfo);