Backport tiny memory leak fix.

svn:r17557
This commit is contained in:
Nick Mathewson 2008-12-10 15:48:47 +00:00
parent 3c8f78b944
commit da1a18d327
1 changed files with 1 additions and 0 deletions

View File

@ -945,6 +945,7 @@ log_credential_status(void)
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;
}