Fix memory leak in th_get_pathname
commitfcb6cd7be4481c99238cda177c2b8fc4c35a43b6
authorPer Lidén <per@fukt.bth.se>
Mon, 13 Jun 2011 21:46:05 +0000 (13 17:46 -0400)
committerChris Frey <cdfrey@foursquare.net>
Mon, 13 Jun 2011 21:56:56 +0000 (13 17:56 -0400)
tree6888aeb02eab85c15ace008263cff4ba3e2a8ba7
parent95946f38a793dc73dcee95de6b18437ee7b9627f
Fix memory leak in th_get_pathname

Fix memory leak in th_get_pathname by making the buffer, where prefix
and filename are concatenated, static and returning that instead of a
pointer to a copy of a local buffer.

Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libtar/+bug/41804
https://lists.feep.net:8080/pipermail/libtar/2003-October/000161.html
lib/decode.c