aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-09-08 15:01:16 +0000
committerGerald Combs <gerald@wireshark.org>2005-09-08 15:01:16 +0000
commite0331bbb1c23aad02e6b0264e959cac4d180b84c (patch)
tree700ad4c405ea679ff40b6940238ecb5f993cbbb3 /wiretap
parentd9c63f0fdd435373bd531305c3c04ff354bba8f5 (diff)
Fix more problems found by Steve Grubb, along with other changes:
Camel: Fix an off-by-one error. Don't alloc and free where it's not needed. Remove an unused variable. PPP and K12: Fix memory leaks. svn path=/trunk/; revision=15725
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/k12.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/k12.c b/wiretap/k12.c
index 3df194516e..05392bc914 100644
--- a/wiretap/k12.c
+++ b/wiretap/k12.c
@@ -375,6 +375,7 @@ int k12_open(wtap *wth, int *err, gchar **err_info _U_) {
if (extra_len == 0 || name_len == 0 || stack_len == 0
|| 0x20 + extra_len + name_len + stack_len > rec_len ) {
+ g_free(rec);
return 0;
}