From 7ddef8633d5dc0fe828c18d1e70700bb20820371 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 25 Nov 2015 18:38:21 +0000 Subject: [PATCH] PR/50092: Fix memory leak. --- lib/libterminfo/curterm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libterminfo/curterm.c b/lib/libterminfo/curterm.c index 2b00c63542f0..3437c1301f13 100644 --- a/lib/libterminfo/curterm.c +++ b/lib/libterminfo/curterm.c @@ -1,4 +1,4 @@ -/* $NetBSD: curterm.c,v 1.10 2013/11/18 20:51:03 joerg Exp $ */ +/* $NetBSD: curterm.c,v 1.11 2015/11/25 18:38:21 christos Exp $ */ /* * Copyright (c) 2009, 2011 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ */ #include -__RCSID("$NetBSD: curterm.c,v 1.10 2013/11/18 20:51:03 joerg Exp $"); +__RCSID("$NetBSD: curterm.c,v 1.11 2015/11/25 18:38:21 christos Exp $"); #include #include @@ -139,6 +139,7 @@ del_curterm(TERMINAL *oterm) free(oterm->nums); free(oterm->flags); free(oterm->_userdefs); + free(oterm->_buf); free(oterm); return OK; }