summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sm_client.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/sm_client.c b/src/sm_client.c
index 7e9c986..13059ce 100644
--- a/src/sm_client.c
+++ b/src/sm_client.c
@@ -317,6 +317,22 @@ SmcCloseConnection(SmcConn smcConn, int count, char **reasonMsgs)
if (smcConn->client_id)
free (smcConn->client_id);
+ if (smcConn->interact_waits)
+ {
+ _SmcInteractWait *ptr = smcConn->interact_waits;
+ _SmcInteractWait *next;
+
+ while (ptr)
+ {
+ next = ptr->next;
+ free ((char *) ptr);
+ ptr = next;
+ }
+ }
+
+ if (smcConn->phase2_wait)
+ free (smcConn->phase2_wait);
+
if (smcConn->prop_reply_waits)
{
_SmcPropReplyWait *ptr = smcConn->prop_reply_waits;