Changeset 7d471c3


Ignore:
Timestamp:
Feb 10, 2009, 7:04:37 PM (11 years ago)
Author:
Sam Hartman <hartmans@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8412869
Parents:
6b7e7a5
git-author:
Sam Hartman <hartmans@mit.edu> (02/10/09 18:56:18)
git-committer:
Sam Hartman <hartmans@mit.edu> (02/10/09 19:04:37)
Message:
message.c: do not leak call to long_zuser

long_zuser returns a string that must be freed by the caller.
owl_message_set_recipient does not free its argument but instead
duplicates it.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r147d880 r7d471c3  
    964964  owl_message_set_instance(m, owl_zwrite_get_instance(&z));
    965965  if (owl_zwrite_get_numrecips(&z)>0) {
     966    char *longzuser = long_zuser(owl_zwrite_get_recip_n(&z, 0));
    966967    owl_message_set_recipient(m,
    967                               long_zuser(owl_zwrite_get_recip_n(&z, 0))); /* only gets the first user, must fix */
     968                              longzuser); /* only gets the first user, must fix */
     969    owl_free(longzuser);
    968970  }
    969971  owl_message_set_opcode(m, owl_zwrite_get_opcode(&z));
Note: See TracChangeset for help on using the changeset viewer.