Permalink
Browse files

Fix memory leak.

All praise to the Clang Static Humiliator, which found this.
  • Loading branch information...
1 parent f97a679 commit 8c03626baa2c2fd900ecae96914329f98a316fbb @guyharris guyharris committed Nov 30, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 nametoaddr.c
View
@@ -247,6 +247,7 @@ pcap_nametoportrange(const char *name, int *port1, int *port2, int *proto)
free(cpy);
return 0;
}
+ free(cpy);
if (*proto != save_proto)
*proto = PROTO_UNDEF;

0 comments on commit 8c03626

Please sign in to comment.