-
Steve Beattie authored
This patch moves the DUP_STRING macro to parser.h and modifies it to accept a goto error target, that will be jumped to if the call to strdup(3) fails. It also uses it in additional locations where copying structures occurs, as well as detecting additional cases where a structure duplication might have failed but not been propagated outward. Signed-off-by: Steve Beattie <steve@nxnw.org> Acked-by: Tyler Hicks <tyhicks@canonical.com>
dd514513