Don't try to free() statically allocated array.
PR: 36426 Submitted by: Joe Marcus Clarke <marcus@marcuscom.com>
This commit is contained in:
parent
0ff2aadb8a
commit
8bb66e82a0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56867
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user