diff options
-rw-r--r-- | source/blender/blenlib/intern/fileops.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/fileops.c b/source/blender/blenlib/intern/fileops.c index c2f0c38247a..9ccd6e3d521 100644 --- a/source/blender/blenlib/intern/fileops.c +++ b/source/blender/blenlib/intern/fileops.c @@ -514,8 +514,9 @@ static int recursive_operation(const char *startfrom, const char *startto, Recur } if (ret != 0) { - while (i < n) - free(dirlist[i]); + while (i < n) { + free(dirlist[i++]); + } break; } } |