Ticket #8617: avoid_double_free.patch
File avoid_double_free.patch, 525 bytes (added by , 11 years ago) |
---|
-
src/apps/poorman/libhttpd/libhttpd.c
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