Changeset 1915073


Ignore:
Timestamp:
Mar 1, 2010, 8:15:26 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b85c1c4
Parents:
1a0874f
git-author:
Anders Kaseorg <andersk@mit.edu> (02/25/10 23:42:26)
git-committer:
Anders Kaseorg <andersk@mit.edu> (03/01/10 20:15:26)
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

    r2a17b63 r1915073  
    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.