aboutsummaryrefslogtreecommitdiff
path: root/src/pkg_free.c
diff options
context:
space:
mode:
authordacctal <donotcontactmevia@email.invalid>2026-07-02 03:54:29 +0000
committerdacctal <donotcontactmevia@email.invalid>2026-07-02 03:54:29 +0000
commit2fe0443d7073e59b1e4d75f49f0a5a417678f4cd (patch)
tree24a269f1fa532eacea4380d03882abe145dc297d /src/pkg_free.c
parentfe3caeefac7a2081f5c9db90bf5c821624a71082 (diff)
ezntek: checkpoint!
Diffstat (limited to 'src/pkg_free.c')
-rw-r--r--src/pkg_free.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pkg_free.c b/src/pkg_free.c
new file mode 100644
index 0000000..2b1d670
--- /dev/null
+++ b/src/pkg_free.c
@@ -0,0 +1,9 @@
+#include "pkg.h"
+
+void pkg_free(package_t *pkg) {
+ str_free(&pkg->name);
+ str_free(&pkg->url);
+ str_free(&pkg->version);
+ str_free(&pkg->target);
+ str_free(&pkg->src);
+}