Changeset 522e03d


Ignore:
Timestamp:
Jul 19, 2011, 3:51:10 AM (13 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.8
Children:
aaf8a77
Parents:
25f2e21
git-author:
David Benjamin <davidben@mit.edu> (07/19/11 03:16:31)
git-committer:
David Benjamin <davidben@mit.edu> (07/19/11 03:51:10)
Message:
Don't leak realmsg when... what is this I don't even

I don't know what in the world this code is doing after the return, but
it leaks!
File:
1 edited

Legend:

Unmodified
Added
Removed
  • aim.c

    r2770be99 r522e03d  
    10641064  g_free(wrapmsg);
    10651065  g_free(nz_screenname);
     1066  g_free(realmsg);
    10661067
    10671068  return(1);
    10681069
    1069   owl_function_debugmsg("faimtest_parse_incoming_im_chan1: icbm: message: %s\n", realmsg);
    1070  
    1071   if (args->icbmflags & AIM_IMFLAGS_MULTIPART) {
    1072     aim_mpmsg_section_t *sec;
    1073     int z;
    1074 
    1075     owl_function_debugmsg("faimtest_parse_incoming_im_chan1: icbm: multipart: this message has %d parts\n", args->mpmsg.numparts);
    1076    
    1077     for (sec = args->mpmsg.parts, z = 0; sec; sec = sec->next, z++) {
    1078       if ((sec->charset == 0x0000) || (sec->charset == 0x0003) || (sec->charset == 0xffff)) {
    1079         owl_function_debugmsg("faimtest_parse_incoming_im_chan1: icbm: multipart:   part %d: charset 0x%04x, subset 0x%04x, msg = %s\n", z, sec->charset, sec->charsubset, sec->data);
    1080       } else {
    1081         owl_function_debugmsg("faimtest_parse_incoming_im_chan1: icbm: multipart:   part %d: charset 0x%04x, subset 0x%04x, binary or UNICODE data\n", z, sec->charset, sec->charsubset);
    1082       }
    1083     }
    1084   }
    1085  
    1086   if (args->icbmflags & AIM_IMFLAGS_HASICON) {
    1087     /* aim_send_im(sess, userinfo->sn, AIM_IMFLAGS_BUDDYREQ, "You have an icon"); */
    1088     owl_function_debugmsg("faimtest_parse_incoming_im_chan1: icbm: their icon: iconstamp = %ld, iconlen = 0x%08x, iconsum = 0x%04x\n", args->iconstamp, args->iconlen, args->iconsum);
    1089   }
    1090 
    1091   g_free(realmsg);
    1092 
    1093   return(1);
     1070  /* TODO: Multipart? See history from before 1.8 release. */
    10941071}
    10951072
Note: See TracChangeset for help on using the changeset viewer.