diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-09-08 15:01:16 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-09-08 15:01:16 +0000 |
commit | e0331bbb1c23aad02e6b0264e959cac4d180b84c (patch) | |
tree | 700ad4c405ea679ff40b6940238ecb5f993cbbb3 /wiretap | |
parent | d9c63f0fdd435373bd531305c3c04ff354bba8f5 (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.c | 1 |
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; } |