From df17ce729b273d095dc5b33f6723a678c10883c1 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 23 Jan 2009 20:47:45 +0000 Subject: passing a null pointer to free() is valid; sprinkle a few free->xfree. ok oga@ --- client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index ffa8922..35a7614 100644 --- a/client.c +++ b/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: client.c,v 1.46 2009/01/22 19:01:56 okan Exp $ + * $Id: client.c,v 1.47 2009/01/23 20:47:45 okan Exp $ */ #include "headers.h" @@ -699,8 +699,7 @@ client_freehints(struct client_ctx *cc) XFree(cc->app_name); if (cc->app_class != NULL) XFree(cc->app_class); - if (cc->app_cliarg != NULL) - xfree(cc->app_cliarg); + xfree(cc->app_cliarg); } static int -- cgit v1.2.3-2-gb3c3