Browse code

- tests again

Andrei Pelinescu-Onciul authored on 09/09/2002 16:37:18
Showing 1 changed files
... ...
@@ -131,9 +131,10 @@ int ls_ifflags(char* name, int family , int options)
131 131
 		/*if (ifr.ifr_flags & IFF_DYNAMIC ) printf ("DYNAMIC ");*/
132 132
 		printf ("\n");
133 133
 	};
134
-
134
+	close(s);
135 135
 	return 0;
136 136
 error:
137
+	close(s);
137 138
 	return -1;
138 139
 }
139 140
 
... ...
@@ -209,8 +210,10 @@ int ls_ifs(char* name, int family, int options)
209 210
 		}
210 211
 	}
211 212
 	free(ifc.ifc_req); /*clean up*/
213
+	close(s);
212 214
 	return  0;
213 215
 error:
216
+	close(s);
214 217
 	return -1;
215 218
 }
216 219