# HG changeset patch # User June Park # Date 1760018616 25200 # Node ID 08a465eec50bed9be2b58b0b26862c6df98d4d22 # Parent 2852b2e2363f2d831fecbe745d3b8d3fe7d4b8f6 [Dowa] Fixed a bug that I caused trying to stop memory leak lol. diff -r 2852b2e2363f -r 08a465eec50b dowa/d_memory.c --- a/dowa/d_memory.c Thu Oct 09 06:55:07 2025 -0700 +++ b/dowa/d_memory.c Thu Oct 09 07:03:36 2025 -0700 @@ -360,8 +360,8 @@ if (!f) { perror("fopen"); continue; } void *buf = p_hash_map->p_arena ? - Dowa_Arena_Allocate(p_hash_map->p_arena, size+1) : - malloc(size+1); + Dowa_Arena_Allocate(p_hash_map->p_arena, size) : + malloc(size); if (!buf) { perror("malloc"); fclose(f); closedir(dir); return -1; } @@ -374,10 +374,7 @@ } fclose(f); - // null-terminate since the files don't do this and we need this for print. - ((unsigned char*)buf)[size] = '\0'; - - Dowa_HashMap_Push_Value_With_Type(p_hash_map, entry->d_name, buf, size + 1, DOWA_HASH_MAP_TYPE_STRING); + Dowa_HashMap_Push_Value_With_Type(p_hash_map, entry->d_name, buf, size, DOWA_HASH_MAP_TYPE_STRING); free(buf); // Dowa_HashMap_PushValue made its own copy } else if (S_ISDIR(st.st_mode)) diff -r 2852b2e2363f -r 08a465eec50b mrjunejune/pages/react/index.html --- a/mrjunejune/pages/react/index.html Thu Oct 09 06:55:07 2025 -0700 +++ b/mrjunejune/pages/react/index.html Thu Oct 09 07:03:36 2025 -0700 @@ -4,6 +4,7 @@
+

Hello

diff -r 2852b2e2363f -r 08a465eec50b seobeo/BUILD --- a/seobeo/BUILD Thu Oct 09 06:55:07 2025 -0700 +++ b/seobeo/BUILD Thu Oct 09 07:03:36 2025 -0700 @@ -46,7 +46,7 @@ "s_web.c", "os/s_linux_edge.c", ], - hdrs = [":seobeo_hrs"], + hdrs = [":seobeo_hdrs"], deps = [ "//dowa:dowa", "@openssl//:ssl",