Commit 6e42fb3
committed
data: fix DNode double free
Calling free twice on a dnode is failing with libyang-python, when it is
supported with libyang. That is because cdata is set to None in the free
function. Set it to ffi.NULL so that libyang can see the NULL pointer.
Fixes: #84
Signed-off-by: Stefan Gula <steweg@gmail.com>
Signed-off-by: Samuel Gauthier <samuel.gauthier@6wind.com>1 parent c6caf46 commit 6e42fb3
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
881 | 881 | | |
882 | 882 | | |
883 | 883 | | |
884 | | - | |
| 884 | + | |
885 | 885 | | |
886 | 886 | | |
887 | 887 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
876 | 876 | | |
877 | 877 | | |
878 | 878 | | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
0 commit comments