Skip to content

Commit

Permalink
ci: test memoery sanitizer with leak
Browse files Browse the repository at this point in the history
  • Loading branch information
pinheadmz committed Dec 13, 2022
1 parent bf189b7 commit cc2cf2b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,6 @@ hsk_daemon_init(hsk_daemon_t *daemon, uv_loop_t *loop, hsk_options_t *opt) {
daemon->ns = NULL;
daemon->rs = NULL;

uint8_t *use_after_free = malloc(1);
memset(use_after_free, 1, 1);
free(use_after_free);
printf("%d\n", *use_after_free);

uint8_t *leak = malloc(1);
memset(leak, 1, 1);

Expand Down

0 comments on commit cc2cf2b

Please sign in to comment.