[Rpm-maint] [rpm-software-management/rpm] Fix some resource leaks when running rpmbuild (PR #2293)

xujing notifications at github.com
Thu Dec 8 11:13:33 UTC 2022


@JetXujing commented on this pull request.



> @@ -276,7 +279,11 @@ static int doBuildRequires(rpmSpec spec, int test)
 
  exit:
     freeStringBuf(sb_stdout);
-    free(output);
+    if (output) {

Thank you for the tip, I've made the relevant changes.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/2293#discussion_r1043237603
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/2293/review/1209906020 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20221208/dbe3e14f/attachment.html>


More information about the Rpm-maint mailing list