diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-28 21:42:55 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2020-01-28 21:42:55 -0500 |
commit | 7c2b1baad8434f9f7b19efe48719942cb3bce4cd (patch) | |
tree | 79666a768eb3392ddea57a78c57531d00a145769 /include/spm.h | |
parent | 8b06e3e66a4cf26c02f9e0175263e1a561186c1b (diff) | |
download | spmc-7c2b1baad8434f9f7b19efe48719942cb3bce4cd.tar.gz |
Fix more memory leaks:
Add ability to free ManifestPackage structure
Fix bug: manifest_search pointer got free()ed accidentally.
Diffstat (limited to 'include/spm.h')
-rw-r--r-- | include/spm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/spm.h b/include/spm.h index 53a09c1..5fb5205 100644 --- a/include/spm.h +++ b/include/spm.h @@ -304,6 +304,7 @@ Manifest *manifest_from(const char *package_dir); Manifest *manifest_read(char *file_or_url); int manifest_write(Manifest *info, const char *dest); void manifest_free(Manifest *info); +void manifest_package_free(ManifestPackage *info); ManifestPackage *manifest_search(Manifest *info, const char *package); // checksum.c @@ -344,6 +345,7 @@ void runtime_free(RuntimeEnv *env); // mirrors.c char **file_readlines(const char *filename); char **mirror_list(const char *filename); +void mirror_list_free(char **m); void mirror_clone(Manifest *info, char *dest); #endif //SPM_SPM_H |