Browse Source

[test_glob] fix memory leak

rexim 2 years ago
parent
commit
9cb9c0d681
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test_glob.c

+ 3 - 0
test_glob.c

@@ -51,6 +51,9 @@ void check_glob_located(const char *file, int line, const char *pattern, const c
         printf("%s:%d: FAILURE! Expected %s", file, line, glob_result_display(expected));
         exit(1);
     }
+
+    free(pattern_utf32);
+    free(text_utf32);
 }
 
 #define check_glob(pattern, text, expected) check_glob_located(__FILE__, __LINE__, pattern, text, expected)