Changeset 8ea0ffc


Ignore:
Timestamp:
Mar 1, 2010, 8:33:49 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.5
Children:
5cebc0e
Parents:
d836977c
git-author:
Anders Kaseorg <andersk@mit.edu> (02/25/10 23:42:26)
git-committer:
Nelson Elhage <nelhage@mit.edu> (03/01/10 20:33:49)
Message:
main: Don’t leak the default tty name.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Alejandro R. Sedeño <asedeno@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rb752f1e r8ea0ffc  
    533533    owl_global_set_tty(&g, opts.tty);
    534534  } else {
    535     owl_global_set_tty(&g, owl_util_get_default_tty());
     535    char *tty = owl_util_get_default_tty();
     536    owl_global_set_tty(&g, tty);
     537    owl_free(tty);
    536538  }
    537539
Note: See TracChangeset for help on using the changeset viewer.