From d914214674a0de285622e9cd4cbc85fc55e3ca4d Mon Sep 17 00:00:00 2001 From: mid Date: Fri, 18 Aug 2000 20:11:23 +0000 Subject: [PATCH] - Fri Aug 18 19:52:54 UTC 2000 - Fix the non-pthread bug - Thu Aug 17 23:19:40 UTC 2000 - A few more leak fixes (only a few left to go...) --- CHANGES | 3 +++ aim_chatnav.c | 3 ++- faim/aim.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 4435056..42d8064 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ No release numbers ------------------ + - Fri Aug 18 19:52:54 UTC 2000 + - Fix the non-pthread bug + - Thu Aug 17 23:19:40 UTC 2000 - A few more leak fixes (only a few left to go...) diff --git a/aim_chatnav.c b/aim_chatnav.c index adbd095..2fbbcd9 100644 --- a/aim_chatnav.c +++ b/aim_chatnav.c @@ -124,6 +124,7 @@ int aim_chatnav_parse_info(struct aim_session_t *sess, struct command_rx_struct curexchange++; exchanges = realloc(exchanges, curexchange * sizeof(struct aim_chat_exchangeinfo)); + /* exchange number */ exchanges[curexchange-1].number = aimutil_get16(exchangetlv->value); innerlist = aim_readtlvchain(exchangetlv->value+2, exchangetlv->length-2); @@ -231,7 +232,7 @@ int aim_chatnav_parse_info(struct aim_session_t *sess, struct command_rx_struct curexchange, exchanges); curexchange--; - while(curexchange) + while(curexchange >= 0) { if (exchanges[curexchange].name) free(exchanges[curexchange].name); diff --git a/faim/aim.h b/faim/aim.h index a35af36..3947d10 100644 --- a/faim/aim.h +++ b/faim/aim.h @@ -53,7 +53,7 @@ * But they get it to compile. */ #define faim_mutex_t char -#define faim_mutex_init(x, y) *x = 0 +#define faim_mutex_init(x) *x = 0 #define faim_mutex_lock(x) *x = 1; #define faim_mutex_unlock(x) *x = 0; #define faim_mutex_destroy(x) *x = 0; -- 2.45.1