Commits

Palmer, 2E0EOL committed 4644191

Release memory used for InputDirectory on exit.

Comments (0)

Files changed (1)

 int main(int argc, char *argv[]);
 /*-------------------------------------------------------------------------*/
 static unsigned int DebugLevel;
-static const char *InputDirectory;
+static char *InputDirectory;
 /*-------------------------------------------------------------------------*/
 static bool ProcessOptions(int ArgC, char **ArgV)
 {
 		fputs("ERROR: Input directory (-d) not specified.\n", stderr);
 		return EXIT_FAILURE;
 	}
+	free(InputDirectory);
 	return EXIT_SUCCESS;
 }
 /*-------------------------------------------------------------------------*/