]> git.proxmox.com Git - mirror_qemu.git/commitdiff
forgot fclose()
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 5 Jul 2004 21:18:42 +0000 (21:18 +0000)
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Mon, 5 Jul 2004 21:18:42 +0000 (21:18 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@979 c046a42c-6fe2-441c-8c8c-71466251a162

slirp/slirp.c

index f9c4f159e90fb3656214fdd1bdc2d424543ed733..ad10516a0632a17b8ada5b994c1be2e4e5da68d4 100644 (file)
@@ -65,6 +65,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
                 lprint("%s", inet_ntoa(tmp_addr));
         }
     }
+    fclose(f);
     if (!found)
         return -1;
     return 0;
@@ -75,7 +76,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
 void slirp_init(void)
 {
     //    debug_init("/tmp/slirp.log", DEBUG_DEFAULT);
-
+    
     link_up = 1;
 
     if_init();