Skip to contentSkip to conversation

transport: Free leaking head in transport_print_push_status

PATCH In review Stefan Beller 2 participants 4 messages Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 transport: Free leaking head in transport_print_push_status

From: Stefan Beller <[email protected]>

Found by scan.coverity.com (ID: 1248110)

---
 transport.c | 1 +
 1 file changed, 1 insertion(+)
transport.c +1 -0
index 055d2a2..fbab6ee 100644
@@ -774,6 +774,7 @@ void transport_print_push_status(const char *dest, struct ref *refs,
 			*reject_reasons |= REJECT_NEEDS_FORCE;
 		}
 	}
+	free(head);
 }
 
 void transport_verify_remote_names(int nr_heads, const char **heads)
Signature · 1 line
2.1.2.332.g8071e93
#1 lore raw

PATCH 2/2 .mailmap: Add Stefan Bellers corporate mail address

From: Stefan Beller <[email protected]>

Note that despite the private address being first, Google owns the copyright on this patch as any other patch I'll be sending signed off by the [email protected] address.

---
 .mailmap | 1 +
 1 file changed, 1 insertion(+)
.mailmap +1 -0
index 8aefb5a..bb6f52e 100644
@@ -205,6 +205,7 @@ Shawn O. Pearce <[email protected]>
 Simon Hausmann <[email protected]> <[email protected]>
 Simon Hausmann <[email protected]> <[email protected]>
 Stefan Beller <[email protected]> <[email protected]>
+Stefan Beller <[email protected]> <[email protected]>
 Stefan Naewe <[email protected]> <[email protected]>
 Stefan Naewe <[email protected]> <[email protected]>
 Stefan Sperling <[email protected]> <[email protected]>
Signature · 1 line
2.1.2.332.g8071e93
#2 lore raw

Re: [PATCH 2/2] .mailmap: Add Stefan Bellers corporate mail address

Quoted 5 lines · Stefan Beller

From: Stefan Beller <[email protected]>

Note that despite the private address being first, Google owns the copyright on this patch as any other patch I'll be sending signed off by the [email protected] address.

While Googlers are encouraged to interact with external open source projects using their corp address when working as new contributors, Googlers are also encouraged to keep using the same pre-corp address when working with projects they have been part of for continuity.

After all, even if you send patches from your @gmail.com address while being employed by Google, the patches are copyright Google, not yours, and DCO (a) "I have the right to submit" covers your submissions just fine (i.e. it does not say "I own the copyright"), as long as you are cleared to contribute your patches to us by Google's open source office (which I happen to know that you have already done).

The mailmap is primarily to correct past mistakes and document the new addresses of those who lost the old address to maintain their reachability. It is not about planning to send patches from two different addresses chosen by the phase of the moon or something.

I do not terribly mind, but is this patch really necessary?

Quoted 18 lines
---
 .mailmap | 1 +
 1 file changed, 1 insertion(+)
.mailmap +1 -0
index 8aefb5a..bb6f52e 100644
@@ -205,6 +205,7 @@ Shawn O. Pearce <[email protected]>
 Simon Hausmann <[email protected]> <[email protected]>
 Simon Hausmann <[email protected]> <[email protected]>
 Stefan Beller <[email protected]> <[email protected]>
+Stefan Beller <[email protected]> <[email protected]>
 Stefan Naewe <[email protected]> <[email protected]>
 Stefan Naewe <[email protected]> <[email protected]>
 Stefan Sperling <[email protected]> <[email protected]>
#4 lore raw

Re: [PATCH 2/2] .mailmap: Add Stefan Bellers corporate mail address

In reply to a message not in the archive
Quoted 6 lines · Stefan Beller

If you want me to continue using my gmail address, please check the authorship
from the previous patch ([PATCH 1/2] transport: Free leaking head in transport_print_push_status)
and remove the "From: Stefan Beller <[email protected]>" line, so we don't end up needing this patch.

As I said, I do not care too deeply either way. If you feel that switching to a different e-mail address to sign off your patches from now on until your employment is terminated has merit to the project, that's fine by me.

Thanks.