]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Plug minor memory leak
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 14 Aug 2011 17:34:44 +0000 (19:34 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 14 Aug 2011 17:34:44 +0000 (19:34 +0200)
ccache.c

index bc4d29fbae015bc32c350554828c2e962e1e7f4a..92233138dfa8b001951e3f1fa0a58d3e9b2b0357 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1647,6 +1647,7 @@ cc_process_args(struct args *orig_args, struct args **preprocessor_args,
                                continue;
                        }
                        cc_log("Unknown profile option: %s", argv[i]);
+                       free(arg);
                }
 
                /*