I noticed that the new plug-in tests are exhibiting leaks. The bug is in the test plug-in. I have a fix.
Created attachment 6958 [details] patch with detailed change log
> Changed code to put the strings in malloc buffers instead of relying on GCC's extension > that allows variable-sized arrays on the stack. Didn't this use a standard C99 feature (although gcc variable-sized arrays aren't exactly the same as C99 ones)?
Comment on attachment 6958 [details] patch with detailed change log Nice clean-up, r=me.
(In reply to comment #2) > Didn't this use a standard C99 feature (although gcc variable-sized arrays > aren't exactly the same as C99 ones)? There are good reasons to not use this in general, even though it's present in C99. For one thing, we don't have a C99-compliant compiler on all the paltforms we target. For another, using a variable amount of stack can cause problems on OS X. Because of that, we generally don't use this technique in any production code. A test tool doesn't quite qualify as production code, of course.