LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File tools-20070815-fdleak.patch of Package uml-utilities (Project openSUSE:Factory)

Index: mconsole/uml_mconsole.c
===================================================================
--- mconsole/uml_mconsole.c.orig	2006-02-28 05:05:32.000000000 +0100
+++ mconsole/uml_mconsole.c	2009-10-05 20:43:04.000000000 +0200
@@ -77,6 +77,7 @@ static int do_switch(char *dir, char *fi
 		if(end != pid)
 			uml_pid = n;
 	}
+	fclose(fp);
 
 	return 0;
 }
@@ -371,6 +372,7 @@ static int log_cmd(int fd, char *command
       default_cmd(fd, buf);
       newline = (ptr[len - 1] == '\n');
     }
+    close(input_fd);
     if(len < 0){
       perror("reading file");
       exit(1);