Don't try to free() statically allocated array.

PR:		36426
Submitted by:	Joe Marcus Clarke <marcus@marcuscom.com>
This commit is contained in:
Maxim Sobolev 2002-03-29 12:55:02 +00:00
parent 0ff2aadb8a
commit 8bb66e82a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56867
8 changed files with 64 additions and 4 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= gnomecontrolcenter
PORTVERSION= 1.4.0.4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/control-center

View File

@ -0,0 +1,15 @@
$FreeBSD$
--- capplets/theme-switcher/lister.c 2002/03/29 12:43:59 1.1
+++ capplets/theme-switcher/lister.c 2002/03/29 12:45:18
@@ -115,8 +115,7 @@
char *errstring = NULL;
int out_fd;
#ifndef HAVE_GETLINE
- char line[1024];
- char *lineptr = line;
+ char *lineptr = (char *)malloc(1024);
#else
char *lineptr = NULL;
#endif

View File

@ -7,7 +7,7 @@
PORTNAME= gnomecontrolcenter
PORTVERSION= 1.4.0.4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/control-center

View File

@ -0,0 +1,15 @@
$FreeBSD$
--- capplets/theme-switcher/lister.c 2002/03/29 12:43:59 1.1
+++ capplets/theme-switcher/lister.c 2002/03/29 12:45:18
@@ -115,8 +115,7 @@
char *errstring = NULL;
int out_fd;
#ifndef HAVE_GETLINE
- char line[1024];
- char *lineptr = line;
+ char *lineptr = (char *)malloc(1024);
#else
char *lineptr = NULL;
#endif

View File

@ -7,7 +7,7 @@
PORTNAME= gnomecontrolcenter
PORTVERSION= 1.4.0.4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/control-center

View File

@ -0,0 +1,15 @@
$FreeBSD$
--- capplets/theme-switcher/lister.c 2002/03/29 12:43:59 1.1
+++ capplets/theme-switcher/lister.c 2002/03/29 12:45:18
@@ -115,8 +115,7 @@
char *errstring = NULL;
int out_fd;
#ifndef HAVE_GETLINE
- char line[1024];
- char *lineptr = line;
+ char *lineptr = (char *)malloc(1024);
#else
char *lineptr = NULL;
#endif

View File

@ -7,7 +7,7 @@
PORTNAME= gnomecontrolcenter
PORTVERSION= 1.4.0.4
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/control-center

View File

@ -0,0 +1,15 @@
$FreeBSD$
--- capplets/theme-switcher/lister.c 2002/03/29 12:43:59 1.1
+++ capplets/theme-switcher/lister.c 2002/03/29 12:45:18
@@ -115,8 +115,7 @@
char *errstring = NULL;
int out_fd;
#ifndef HAVE_GETLINE
- char line[1024];
- char *lineptr = line;
+ char *lineptr = (char *)malloc(1024);
#else
char *lineptr = NULL;
#endif