diff options
author | oga | 2009-01-22 18:16:38 +0000 |
---|---|---|
committer | oga | 2009-01-22 18:16:38 +0000 |
commit | 9f7c5b89793258b4c7126f036eb1493b0bb9d3fc (patch) | |
tree | ada052fc490ebf88c281979ae20a72a232b68191 /parse.y | |
parent | 0664ee7338baf05bc2562d5c9df31878e0fff21e (diff) | |
download | cwm-9f7c5b89793258b4c7126f036eb1493b0bb9d3fc.tar.gz |
The default font name is strduped, so don't test for default font name
(therefore leaking it) when cleaning up a conf struct.
ok okan@
Diffstat (limited to '')
-rw-r--r-- | parse.y | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.16 2009/01/21 15:04:38 todd Exp $ */ +/* $OpenBSD: parse.y,v 1.17 2009/01/22 18:16:38 oga Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -502,8 +502,7 @@ conf_clear(struct conf *c) free(mb); } - if (c->DefaultFontName != NULL && - c->DefaultFontName != DEFAULTFONTNAME) + if (c->DefaultFontName != NULL) free(c->DefaultFontName); } |