]> andersk Git - splint.git/blobdiff - src/fileLib.c
Fixed all /*@i...@*/ tags (except 1).
[splint.git] / src / fileLib.c
index ea0892784589b3c28de399975bcc010e26392484..ec108b020e51e8c2119a72149b73a2ea0ef8a41b 100644 (file)
@@ -220,8 +220,10 @@ cstring fileLib_cleanName (cstring s)
 {
   if (cstring_equalPrefixLit (s, "./")) 
     {
-      return cstring_copySegment (s, 2, cstring_length (s) - 1);
+      cstring res = cstring_copySegment (s, 2, cstring_length (s) - 1);
+      cstring_free (s);
+      return res;
     }
 
-  return cstring_copy (s);
+  return s;
 }
This page took 0.034705 seconds and 4 git commands to generate.