Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaky

Overview

This Go program serves as a resource leak simulator, capable of intentionally causing memory leaks and file descriptor leaks for educational or research purposes. The program provides command-line options to control the type of resource to leak.

Installation

  1. Clone this repository.
  2. Navigate to the directory containing the source code.
  3. Run go build to compile the program.

Usage

Run the compiled executable with the desired flags to simulate the corresponding type of resource leak:

  • To leak file descriptors:

    ./leaky --fds
  • To leak memory:

    ./leaky --memory
  • To leak both file descriptors and memory:

    ./leaky --fds --memory

CLI Options

  • --fds: Activate file descriptor leak.
  • --memory: Activate memory leak.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages