Plug memory leaks
modified libpkg/pkg_repo.c
@@ -456,6 +456,7 @@ pkg_repo_parse_sigkeys(const char *in, int inlen, struct sig_cert **sc)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -484,6 +485,7 @@ pkg_repo_parse_sigkeys(const char *in, int inlen, struct sig_cert **sc)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -527,6 +529,8 @@ pkg_repo_parse_sigkeys(const char *in, int inlen, struct sig_cert **sc)
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg_solve.c
@@ -345,8 +345,10 @@ pkg_solve_add_depend_rule(struct pkg_solve_problem *problem,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -354,8 +356,10 @@ pkg_solve_add_depend_rule(struct pkg_solve_problem *problem,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -413,15 +417,19 @@ pkg_solve_add_conflict_rule(struct pkg_solve_problem *problem,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -451,8 +459,10 @@ pkg_solve_add_require_rule(struct pkg_solve_problem *problem,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -536,8 +546,10 @@ pkg_solve_add_request_rule(struct pkg_solve_problem *problem,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -564,15 +576,19 @@ pkg_solve_add_request_rule(struct pkg_solve_problem *problem,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -610,8 +626,10 @@ pkg_solve_add_chain_rule(struct pkg_solve_problem *problem,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
modified libpkg/repo/binary/fetch.c
@@ -195,8 +195,10 @@ pkg_repo_binary_try_fetch(struct pkg_repo *repo, struct pkg *pkg,
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
| + | |
|
|
|
|
|
@@ -217,6 +219,7 @@ checksum:
|
|
|
|
|
|
| + | |
|
|
|
|
|