Avoid memory leak when NULL path passed to FcStrBuildFilename
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 2 Nov 2013 17:23:56 +0000 (10:23 -0700)
committerAkira TAGOH <akira@tagoh.org>
Tue, 5 Nov 2013 02:43:41 +0000 (11:43 +0900)
commit5b8380d52eae55cba0adcc47d78a53c320d294ec
tree8095c57d0acbcf87f411beb379fa4b689b9fb99f
parentcb72901d0b7dff73ea2596491c5db602e4750853
Avoid memory leak when NULL path passed to FcStrBuildFilename

Reported by parfait 1.3:
   Memory leak of pointer sset allocated with FcStrSetCreate()
        at line 933 of src/fcstr.c in function 'FcStrBuildFilename'.
          sset allocated at line 927 with FcStrSetCreate().
          sset leaks when sset != NULL at line 932.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
src/fcstr.c