projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89dc02d
)
Fix horrible, horrible memmory leak. I wondered why processes were dying !
author
Glenn L McGrath
<bug1@ihug.co.nz>
Sat, 21 Apr 2001 10:26:15 +0000
(10:26 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Sat, 21 Apr 2001 10:26:15 +0000
(10:26 -0000)
libbb/read_package_field.c
patch
|
blob
|
history
diff --git
a/libbb/read_package_field.c
b/libbb/read_package_field.c
index 4ba0bc6024f32ca51df4cde65979b23a9d1f4f72..246285f8ec4ada00a921c55a6848ebd890c27825 100644
(file)
--- a/
libbb/read_package_field.c
+++ b/
libbb/read_package_field.c
@@
-1,4
+1,4
@@
-
//#include <stdio
.h>
+
#include <stdlib
.h>
#include <string.h>
#include "libbb.h"
@@
-12,7
+12,6
@@
extern char *read_package_field(const char *package_buffer)
int buffer_length = 0;
buffer_length = strlen(package_buffer);
- field = xcalloc(1, buffer_length + 1);
while ((field = strchr(&package_buffer[field_length], '\n')) != NULL) {
field_length = buffer_length - strlen(field);