Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fixes of libdnf plugins #3382

Merged
merged 4 commits into from
Mar 6, 2024
Merged

Small fixes of libdnf plugins #3382

merged 4 commits into from
Mar 6, 2024

Conversation

jirihnidek
Copy link
Contributor

  • Removed unused includes of .h files
  • Fixed deprecated function prototype
  • Fixed few memory leaks in productdb.c
  • Fixed few memory leaks in test-productdb.c

@cnsnyder cnsnyder requested review from a team and wottop and removed request for a team February 22, 2024 16:05
Copy link

github-actions bot commented Feb 22, 2024

Coverage

Coverage (computed on Fedora latest) •
FileStmtsMissCoverMissing
TOTAL18385468674% 
report-only-changed-files is enabled. No files were changed during this commit :)

Tests Skipped Failures Errors Time
2647 14 💤 0 ❌ 0 🔥 41.159s ⏱️

Copy link
Contributor

@ptoscano ptoscano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM; there are few lines with the wrong indentation.

Since this needs to be amended: there is a typo in the message of the first commit:

  • There were some unused includes in product-ide.c and unit test
    files

s/product-ide/product-id/

src/plugins/libdnf/productdb.c Outdated Show resolved Hide resolved
src/plugins/libdnf/productdb.c Outdated Show resolved Hide resolved
src/plugins/libdnf/productdb.c Outdated Show resolved Hide resolved
* There were some unused includes in product-id.c and unit test
  files
* Added void to prototype of initRepoProductId()
* When reading of JSON file fails, then do not forget to free
  object representing JSON file.

Fix indentation.
* Fixed several memory leaks in test-productdb.c
@jirihnidek jirihnidek force-pushed the jhnidek/libdnf_small_fixes branch from b137fdc to 01f65d2 Compare March 6, 2024 15:01
Copy link
Contributor

@ptoscano ptoscano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@ptoscano ptoscano merged commit 4ad1403 into main Mar 6, 2024
17 checks passed
@ptoscano ptoscano deleted the jhnidek/libdnf_small_fixes branch March 6, 2024 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants