linux: apm: fix retry opening of apm proc file
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Oct 2012 12:12:33 +0000 (14:12 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Oct 2012 12:49:41 +0000 (14:49 +0200)
commit72f9039866d8b7426ff77baba390f54a4bdc528b
treea73f6ff01a0ed5aba00b61e97f5513a1301731c9
parentc69e1579ad75e8c39f5fe4abab36798849639186
linux: apm: fix retry opening of apm proc file

Coverity:
CID 739684 (#1 of 1): Resource leak (RESOURCE_LEAK)
At (6): Variable "apm_procfile" going out of scope leaks the storage it
        points to.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/linux/apm.c