Module Name:    src
Committed By:   christos
Date:           Wed Nov 25 18:38:22 UTC 2015

Modified Files:
        src/lib/libterminfo: curterm.c

Log Message:
PR/50092: Fix memory leak.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libterminfo/curterm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libterminfo/curterm.c
diff -u src/lib/libterminfo/curterm.c:1.10 src/lib/libterminfo/curterm.c:1.11
--- src/lib/libterminfo/curterm.c:1.10	Mon Nov 18 15:51:03 2013
+++ src/lib/libterminfo/curterm.c	Wed Nov 25 13:38:21 2015
@@ -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 @@ del_curterm(TERMINAL *oterm)
 	free(oterm->nums);
 	free(oterm->flags);
 	free(oterm->_userdefs);
+	free(oterm->_buf);
 	free(oterm);
 	return OK;
 }

Reply via email to