{"id":20682092,"url":"https://github.com/mohammedhrima/garbage_collector","last_synced_at":"2025-04-22T12:13:30.283Z","repository":{"id":143498034,"uuid":"588683823","full_name":"mohammedhrima/Garbage_collector","owner":"mohammedhrima","description":"protect your C programs from memory leak and double free","archived":false,"fork":false,"pushed_at":"2024-03-31T01:00:16.000Z","size":80,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T15:04:20.419Z","etag":null,"topics":["malloc","memory-allocation","memory-leak","memory-management"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mohammedhrima.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-01-13T18:21:41.000Z","updated_at":"2025-02-21T07:57:39.000Z","dependencies_parsed_at":"2023-11-28T21:43:47.741Z","dependency_job_id":"cb36a1a5-b2c2-4f99-a74e-ff4a529042ed","html_url":"https://github.com/mohammedhrima/Garbage_collector","commit_stats":null,"previous_names":["mohammedhrima/leaks-and-double-free-cure","mohammedhrima/garbage_collector"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedhrima%2FGarbage_collector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedhrima%2FGarbage_collector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedhrima%2FGarbage_collector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammedhrima%2FGarbage_collector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammedhrima","download_url":"https://codeload.github.com/mohammedhrima/Garbage_collector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237834,"owners_count":21397401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["malloc","memory-allocation","memory-leak","memory-management"],"created_at":"2024-11-16T22:12:45.324Z","updated_at":"2025-04-22T12:13:30.250Z","avatar_url":"https://github.com/mohammedhrima.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Usage :\n```c\n#include \"header.h\"\n\nvoid   *ptr0 = allocate(1000);\nint    *ptr1 = allocate(2000);\nfree_address(ptr1);\nchar  **ptr2 = allocate(5000);\nchar ***ptr3 = allocate(300);\nfree_memory();\n```\n\n## Running Tests\n```bash\ngit clone https://github.com/mohammedhrima/Garbage_collector.git\n```\n```bash\ngcc memory.c your_file.c #don't forget to include header.h\n```\n\n## Important : (what you need to know)\n```\n    - void * , char**, int*** ..., are pointers that holds addresses\n    - Those pointers have the same size\n    - size of pointer depends on computer architecture !!!\n        - in 32-bit CPU size of pointer is 4 bytes\n        - in 64-bit CPU size of pointer is 8 bytes\n        ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammedhrima%2Fgarbage_collector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammedhrima%2Fgarbage_collector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammedhrima%2Fgarbage_collector/lists"}