Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/citrus remove useless free(), pointed by nonaka-san...



details:   https://anonhg.NetBSD.org/src/rev/5f57230be48d
branches:  trunk
changeset: 771412:5f57230be48d
user:      tnozaki <tnozaki%NetBSD.org@localhost>
date:      Sat Nov 19 18:43:40 2011 +0000

description:
remove useless free(), pointed by nonaka-san(again^2).

diffstat:

 lib/libc/citrus/citrus_mapper.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 61112479314e -r 5f57230be48d lib/libc/citrus/citrus_mapper.c
--- a/lib/libc/citrus/citrus_mapper.c   Sat Nov 19 18:34:21 2011 +0000
+++ b/lib/libc/citrus/citrus_mapper.c   Sat Nov 19 18:43:40 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_mapper.c,v 1.8 2011/11/19 18:39:58 tnozaki Exp $        */
+/*     $NetBSD: citrus_mapper.c,v 1.9 2011/11/19 18:43:40 tnozaki Exp $        */
 
 /*-
  * Copyright (c)2003 Citrus Project,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_mapper.c,v 1.8 2011/11/19 18:39:58 tnozaki Exp $");
+__RCSID("$NetBSD: citrus_mapper.c,v 1.9 2011/11/19 18:43:40 tnozaki Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -103,7 +103,6 @@
        ma->ma_dir = strdup(area);
        if (ma->ma_dir == NULL) {
                ret = errno;
-               free(ma->ma_dir);
                goto quit;
        }
        _CITRUS_HASH_INIT(&ma->ma_cache, CM_HASH_SIZE);



Home | Main Index | Thread Index | Old Index