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

Panu Matilainen notifications at github.com
Thu Dec 8 09:26:23 UTC 2022


@pmatilai commented on this pull request.



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

Good catch, but this should simply be `argvFree(output)` instead.

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

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


More information about the Rpm-maint mailing list