Source-Changes-HG archive

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

[src/trunk]: src/lib/libform Do not free the first element of the fields arra...



details:   https://anonhg.NetBSD.org/src/rev/37bdae90c043
branches:  trunk
changeset: 534754:37bdae90c043
user:      blymn <blymn%NetBSD.org@localhost>
date:      Fri Aug 02 14:10:25 2002 +0000

description:
Do not free the first element of the fields array.  This fixes pr 17754.

diffstat:

 lib/libform/form.c |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 9c7ca7229f6c -r 37bdae90c043 lib/libform/form.c
--- a/lib/libform/form.c        Fri Aug 02 14:06:07 2002 +0000
+++ b/lib/libform/form.c        Fri Aug 02 14:10:25 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: form.c,v 1.12 2002/05/20 15:00:11 blymn Exp $  */
+/*     $NetBSD: form.c,v 1.13 2002/08/02 14:10:25 blymn Exp $  */
 
 /*-
  * Copyright (c) 1998-1999 Brett Lymn
@@ -524,7 +524,6 @@
                form->fields[i]->index = -1;
        }
 
-       free(*form->fields);
        free(form);
 
        return E_OK;



Home | Main Index | Thread Index | Old Index