Skip to content

Commit

Permalink
fix memory leak in clib.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Isty001 committed Jan 26, 2021
1 parent a60b8ff commit 353834e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/clib.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,13 @@ static void notify_new_release(void) {

if (!should_check_release(marker_file_path)) {
debug(&debugger, "No need to check for new release yet");
return;
goto cleanup;
}

compare_versions(marker_file_path);
fs_write(marker_file_path, " ");

cleanup:
free((void *)marker_file_path);
}

Expand Down

0 comments on commit 353834e

Please sign in to comment.