[or-cvs] r17557: {tor} Backport tiny memory leak fix. (tor/branches/tor-0_2_0-patches/src/common)

nickm at seul.org nickm at seul.org
Wed Dec 10 15:48:47 UTC 2008


Author: nickm
Date: 2008-12-10 10:48:47 -0500 (Wed, 10 Dec 2008)
New Revision: 17557

Modified:
   tor/branches/tor-0_2_0-patches/src/common/compat.c
Log:
Backport tiny memory leak fix.

Modified: tor/branches/tor-0_2_0-patches/src/common/compat.c
===================================================================
--- tor/branches/tor-0_2_0-patches/src/common/compat.c	2008-12-10 15:45:43 UTC (rev 17556)
+++ tor/branches/tor-0_2_0-patches/src/common/compat.c	2008-12-10 15:48:47 UTC (rev 17557)
@@ -945,6 +945,7 @@
       strgid = tor_malloc(11);
       if (tor_snprintf(strgid, 11, "%u", (unsigned)sup_gids[i]) == -1) {
         log_warn(LD_GENERAL, "Error printing supplementary GIDs");
+        tor_free(strgid);
         formatting_error = 1;
         goto error;
       }



More information about the tor-commits mailing list