Source-Changes-HG archive

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

[src/trunk]: src/lib/libterminfo PR/50092: Fix memory leak.



details:   https://anonhg.NetBSD.org/src/rev/4ff49857254b
branches:  trunk
changeset: 811986:4ff49857254b
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Nov 25 18:38:21 2015 +0000

description:
PR/50092: Fix memory leak.

diffstat:

 lib/libterminfo/curterm.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r ed61e372338f -r 4ff49857254b lib/libterminfo/curterm.c
--- a/lib/libterminfo/curterm.c Wed Nov 25 18:02:08 2015 +0000
+++ b/lib/libterminfo/curterm.c Wed Nov 25 18:38:21 2015 +0000
@@ -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 <sys/cdefs.h>
-__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 <assert.h>
 #include <stdlib.h>
@@ -139,6 +139,7 @@
        free(oterm->nums);
        free(oterm->flags);
        free(oterm->_userdefs);
+       free(oterm->_buf);
        free(oterm);
        return OK;
 }



Home | Main Index | Thread Index | Old Index