procd: Fix memory leaks found by cppcheck
[project/procd.git] / initd / mkdev.c
index e6d3d0c..e826707 100644 (file)
@@ -121,5 +121,6 @@ int mkdev(const char *name, int _mode)
        n_patterns = 1;
        find_devs(true);
        find_devs(false);
+       free(pattern);
        return chdir("/");
 }