]> andersk Git - libfaim.git/commitdiff
Fix a free'ing issue.
authormid <mid>
Mon, 28 Aug 2000 04:07:58 +0000 (04:07 +0000)
committermid <mid>
Mon, 28 Aug 2000 04:07:58 +0000 (04:07 +0000)
aim_rxhandlers.c
aim_tlv.c
utils/faimtest/faimtest.c

index bf83e61b4488e948a8b5a405f3010e2abfd90877..aaeba3ba98c9da2fbcb150789bd1f3c0cb40301e 100644 (file)
@@ -674,6 +674,8 @@ int aim_parse_evilnotify_middle(struct aim_session_t *sess, struct command_rx_st
   if ((userfunc = aim_callhandler(command->conn, 0x0001, 0x0010)))
     ret = userfunc(sess, command, sn);
   
+  free(sn);
+
   return ret;
 }
 
index ee260b00eb8a69ba88d8f7d8d952a78909e97551..fa33aeb207820e35286b97f070fc4f4de777d945 100644 (file)
--- a/aim_tlv.c
+++ b/aim_tlv.c
@@ -49,6 +49,8 @@ struct aim_tlvlist_t *aim_readtlvchain(u_char *buf, int maxlen)
                cur->tlv->value = (u_char *)malloc(length*sizeof(u_char));
                memcpy(cur->tlv->value, buf+pos, length);
 
+               printf("faim: tlv: %x/%x\n", cur->tlv->type, cur->tlv->length);
+
                cur->next = list;
                list = cur;
              }
index 87e5b3e56340aa7a1cb76d43e239702c84411082..f5f60f98f5d67b3f380e3631029c4b3e9625ae30 100644 (file)
@@ -1185,7 +1185,5 @@ int faimtest_parse_evilnotify(struct aim_session_t *sess, struct command_rx_stru
 
   printf("faimtest: warning from: %s\n", sn);
 
-  free(sn);
-
   return 1;
 };
This page took 0.065185 seconds and 5 git commands to generate.