From 341151f41dd6430e18add48365f1e9d17c7c1499 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Olivier=20Coursi=C3=A8re?= <olivier.coursiere@laposte.net>
Date: Sun, 9 Dec 2012 03:45:16 +0000
Subject: [PATCH] Poorman : avoid a double free in ls method. Should fix
#8617.
---
src/apps/poorman/libhttpd/libhttpd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/apps/poorman/libhttpd/libhttpd.c b/src/apps/poorman/libhttpd/libhttpd.c
index b982d15..dd9f5f6 100644
a
|
b
|
ls( httpd_conn* hc )
|
2713 | 2713 | send_mime( |
2714 | 2714 | hc, 200, ok200title, "", "", "text/html; charset=%s", (off_t) -1, |
2715 | 2715 | hc->sb.st_mtime ); |
| 2716 | free(de); |
2716 | 2717 | } |
2717 | 2718 | else if ( hc->method == METHOD_GET ) |
2718 | 2719 | { |
… |
… |
ls( httpd_conn* hc )
|
2947 | 2948 | free(de); |
2948 | 2949 | return -1; |
2949 | 2950 | } |
2950 | | free(de); |
2951 | 2951 | return 0; |
2952 | 2952 | } |
2953 | 2953 | |