From d9e5b13b10ee564549130a1805a305ebee94a230 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 18 Mar 2006 20:48:42 +0000 Subject: [PATCH] Coverity CID 2033: Fix memory leak. --- dist/am-utils/amd/amfs_generic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/am-utils/amd/amfs_generic.c b/dist/am-utils/amd/amfs_generic.c index 32cdad5eff66..ff284bc6cc91 100644 --- a/dist/am-utils/amd/amfs_generic.c +++ b/dist/am-utils/amd/amfs_generic.c @@ -1,4 +1,4 @@ -/* $NetBSD: amfs_generic.c,v 1.2 2006/02/05 16:28:55 christos Exp $ */ +/* $NetBSD: amfs_generic.c,v 1.3 2006/03/18 20:48:42 christos Exp $ */ /* * Copyright (c) 1997-2005 Erez Zadok @@ -416,6 +416,7 @@ amfs_lookup_mntfs(am_node *new_mp, int *error_return) /* * Pick up new defaults */ + XFREE(def_opts); def_opts = str3cat((char *) 0, def_opts, ";", *cur_ivec + 1); dlog("Setting def_opts to \"%s\"", def_opts); continue;