mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-24 23:12:05 +00:00
libsemanage: increment the right index variable in for loop
Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
parent
58fb53bc2b
commit
1004a3b3f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user