path: root/rpc/rpc-transport
diff options
authorEmmanuel Dreyfus <>2012-05-19 17:14:14 +0200
committerAnand Avati <>2012-05-21 13:51:44 -0700
commit0039e876e3bfd889a92e9b51332a7e3b2b93d4b7 (patch)
tree55b42e3a8c7144d48f2a1d7f2ca367ed6755583d /rpc/rpc-transport
parentce6dc515e13fad593458dab942712f9068420fd2 (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 <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Pranith Kumar Karampuri <>
Diffstat (limited to 'rpc/rpc-transport')
0 files changed, 0 insertions, 0 deletions