The code you posted accepts 5 arguments on the command line, performs an insert into a database, then exits. I don't see how this could leak memory. If you had a long running process that looped over a large amount of data and you saw the memory usage of your program increase as it ran, that would indicate a leak.
Keep an eye on just your process when running top
In reply to Re: Memory Leak: Uses 3GB+
by vek
in thread Memory Leak: Uses 3GB+
by kilimanjaro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |