file: fix use-after-free bug.
authorYousong Zhou <[email protected]>
Tue, 16 Dec 2014 07:00:05 +0000 (15:00 +0800)
committerFelix Fietkau <[email protected]>
Thu, 18 Dec 2014 11:38:15 +0000 (12:38 +0100)
commit61657246a9145e7f9e8780f69e0e198231345deb
treee1737fa602401ffeefc2d61f5b7f020243df43ee
parentecf0ed555ebc1b8e5b6aba54bb06a907bb4aecf2
file: fix use-after-free bug.

Currently, it's possible that pointers returned by next_arg() could be
invalidated by another call to next_arg() due to uci_realloc().

Signed-off-by: Yousong Zhou <[email protected]>
file.c