Fix segfault using -python -noproxy and %pythonbegin
This commit is contained in:
parent
5c21de71c7
commit
d8478d671d
1 changed files with 5 additions and 3 deletions
|
|
@ -5011,9 +5011,11 @@ public:
|
||||||
Delete(pycode);
|
Delete(pycode);
|
||||||
}
|
}
|
||||||
} else if (!ImportMode && (Cmp(section, "pythonbegin") == 0)) {
|
} else if (!ImportMode && (Cmp(section, "pythonbegin") == 0)) {
|
||||||
String *pycode = indent_pythoncode(code, "", Getfile(n), Getline(n), "%pythonbegin or %insert(\"pythonbegin\") block");
|
if (shadow) {
|
||||||
Printv(f_shadow_begin, pycode, NIL);
|
String *pycode = indent_pythoncode(code, "", Getfile(n), Getline(n), "%pythonbegin or %insert(\"pythonbegin\") block");
|
||||||
Delete(pycode);
|
Printv(f_shadow_begin, pycode, NIL);
|
||||||
|
Delete(pycode);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Language::insertDirective(n);
|
Language::insertDirective(n);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue