summaryrefslogtreecommitdiff
path: root/user/tlecarrour
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2014-02-26 17:37:35 +0100
committerThomas Schwinge <thomas@codesourcery.com>2014-02-26 17:37:35 +0100
commitc73e48c85d76a6b61a9fe7ddb7a98038a342a1c8 (patch)
tree37585740b355563f7fdfbd51ee45a915e4e68a25 /user/tlecarrour
parent2823921d4eaf9a6ab2448bf4cbf4571e08077050 (diff)
parent9985efe1e82157e09035f44ab1db0a88c9d7d63a (diff)
Merge commit '9985efe1e82157e09035f44ab1db0a88c9d7d63a'
Conflicts: open_issues/glibc.mdwn
Diffstat (limited to 'user/tlecarrour')
-rw-r--r--user/tlecarrour/porting_guide_for_dummies.mdwn6
1 files changed, 4 insertions, 2 deletions
diff --git a/user/tlecarrour/porting_guide_for_dummies.mdwn b/user/tlecarrour/porting_guide_for_dummies.mdwn
index 64f0ba0d..f43119bd 100644
--- a/user/tlecarrour/porting_guide_for_dummies.mdwn
+++ b/user/tlecarrour/porting_guide_for_dummies.mdwn
@@ -1,4 +1,4 @@
-[[!meta copyright="Copyright © 2012 Free Software Foundation, Inc."]]
+[[!meta copyright="Copyright © 2012, 2013 Free Software Foundation, Inc."]]
[[!meta license="""[[!toggle id="license" text="GFDL 1.2+"]][[!toggleable
id="license" text="Permission is granted to copy, distribute and/or modify this
@@ -217,8 +217,10 @@ The code comes from [[https://buildsecurityin.us-cert.gov/bsi/articles/knowledge
if (buff == NULL)
return NULL;
int nchars = readlink(filename, buff, size);
- if (nchars < 0)
+ if (nchars < 0) {
+ free(buff);
return NULL;
+ }
if (nchars < size) {
buff[nchars] = '\0';
return buff;