Changeset 95caa16


Ignore:
Timestamp:
Mar 1, 2007, 10:38:51 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1716fed
Parents:
39dc159
git-author:
Nelson Elhage <nelhage@mit.edu> (03/01/07 22:37:56)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/01/07 22:38:51)
Message:
Fix a pair of stupid minor memory leaks.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r2d1feac r95caa16  
    1818  owl_message_set_direction_none(m);
    1919  m->delete=0;
    20   m->zwriteline=strdup("");
     20  m->zwriteline=NULL;
    2121  m->invalid_format=1;
    2222
     
    454454char *owl_message_get_zwriteline(owl_message *m)
    455455{
     456  if(!m->zwriteline)
     457    return "";
    456458  return(m->zwriteline);
    457459}
     
    459461void owl_message_set_zwriteline(owl_message *m, char *line)
    460462{
     463  if(m->zwriteline) owl_free(m->zwriteline);
    461464  m->zwriteline=strdup(line);
    462465}
  • util.c

    rf166580 r95caa16  
    346346  }
    347347
     348  free(curarg);
     349
    348350  /* check for unbalanced quotes */
    349351  if (quote!='\0') {
Note: See TracChangeset for help on using the changeset viewer.