soniah/gosnmp — pull request #40 by benjamin-thomas (2014-12-31 08:27:18+00:00)
Title: Reduce memory usage

Hello,

[This line](https://github.com/soniah/gosnmp/blob/6a71adf9ce3674d802e091182de6be87740a3eef/marshal.go#L149) caused an abnormally high memory consumption in my program. I traced down the problem with `pprof`.

This proposed change implements the suggested fix in the `FIXME` and solves my problem.

I could not run the test suite since my test device is SNMPv1 only and thus times out (default is v2).

What do you think?