]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-linux.c
Possible resource leak in pcap-linux.c
[libpcap] / pcap-linux.c
index 9c1476440cfb5e88d4c3632c118dc0a31a050986..18c71ea9ef66f05f8f3f484f17af925c3bb8374a 100644 (file)
@@ -1618,8 +1618,8 @@ get_if_flags(const char *name, bpf_u_int32 *flags, char *errbuf)
                                }
                        }
                        fclose(fh);
-                       free(pathstr);
                }
+               free(pathstr);
        }
 
 #ifdef ETHTOOL_GLINK