discover/parser: free parsers on exit
authorJeremy Kerr <jk@ozlabs.org>
Fri, 18 Oct 2013 05:20:57 +0000 (13:20 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 21 Oct 2013 11:30:08 +0000 (19:30 +0800)
commit0ed4725477f7676d7b3d72d5e5a1008bdb045e2d
tree94b2f50ae33ee33f17267e7fae5981d8b51be9d2
parent658244e405261ce92239b4002efcd2cd56d91470
discover/parser: free parsers on exit

Allocate parsers against a context, and free that context on exit.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/parser.c