Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/httpd CID 1358679: Fix memory leak.
details: https://anonhg.NetBSD.org/src/rev/2ce28d8e2cbe
branches: trunk
changeset: 344861:2ce28d8e2cbe
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 24 18:24:47 2016 +0000
description:
CID 1358679: Fix memory leak.
XXX: pullup 7
diffstat:
libexec/httpd/cgi-bozo.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (25 lines):
diff -r f7237a5b0d5f -r 2ce28d8e2cbe libexec/httpd/cgi-bozo.c
--- a/libexec/httpd/cgi-bozo.c Sun Apr 24 18:20:40 2016 +0000
+++ b/libexec/httpd/cgi-bozo.c Sun Apr 24 18:24:47 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgi-bozo.c,v 1.34 2016/04/15 20:00:13 mrg Exp $ */
+/* $NetBSD: cgi-bozo.c,v 1.35 2016/04/24 18:24:47 christos Exp $ */
/* $eterna: cgi-bozo.c,v 1.40 2011/11/18 09:21:15 mrg Exp $ */
@@ -333,12 +333,12 @@
parse_err:
+ free (str);
free (*args);
- free (str);
- *args = NULL;
+ free(args);
*args_len = 0;
- return 0;
+ return NULL;
}
Home |
Main Index |
Thread Index |
Old Index