GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Free mem in cjson_set_valuestring_should_return_null_if_strings_overlap · DaveGamble/cJSON@078c4e6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests
    • misc_tests.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/misc_tests.c‎

Copy file name to clipboardExpand all lines: tests/misc_tests.c
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ static void cjson_set_valuestring_should_return_null_if_strings_overlap(void)
486486
/* If it overlaps, the string will be messed up.*/
487487
TEST_ASSERT_TRUE(strcmp(str, "bcde") == 0);
488488
TEST_ASSERT_NULL(str2);
489+
cJSON_Delete(obj);
489490
}
490491

491492
static void *CJSON_CDECL failing_realloc(void *pointer, size_t size)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.