diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2012-05-19 17:14:14 +0200 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2012-05-21 13:51:44 -0700 |
commit | 0039e876e3bfd889a92e9b51332a7e3b2b93d4b7 (patch) | |
tree | 55b42e3a8c7144d48f2a1d7f2ca367ed6755583d /rpc | |
parent | ce6dc515e13fad593458dab942712f9068420fd2 (diff) |
Thou shalt not free(3) memory dirname(3) returned
On Linux basename() and dirname() return a pointer within the string
passed as argument. On BSD flavors, basename() and dirname() return
static storage, or pthread specific storage. Both behaviour are
compliant, but calling free on the result in the second case is a bug.
BUG: 764655
Change-Id: Ic82414aff1f8db2a7544b16315761ce1c05276c4
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.com/3377
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Pranith Kumar Karampuri <pranithk@gluster.com>
Diffstat (limited to 'rpc')
0 files changed, 0 insertions, 0 deletions