projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48dfb8c
)
Revert "Fixed a use after free error when manipulating datasets."
author
John Darrington
<john@darrington.wattle.id.au>
Sat, 27 Jun 2020 11:15:31 +0000
(13:15 +0200)
committer
John Darrington
<john@darrington.wattle.id.au>
Sat, 27 Jun 2020 11:15:31 +0000
(13:15 +0200)
This reverts commit
1d06ba6d498b9446d5fb8c432d24efb2bee713a9
which caused memory leaks.
src/data/dataset.c
patch
|
blob
|
history
diff --git
a/src/data/dataset.c
b/src/data/dataset.c
index 12fc4a20fdbf3f73d29aad071c0b7aed4d74766e..b94a3675c6668ac4ce4ae6362c7db145d58846f3 100644
(file)
--- a/
src/data/dataset.c
+++ b/
src/data/dataset.c
@@
-293,7
+293,7
@@
dataset_set_dict (struct dataset *ds, struct dictionary *dict)
dataset_clear (ds);
dict_unref (ds->dict);
- ds->dict = dict
_ref (dict)
;
+ ds->dict = dict;
dict_set_change_callback (ds->dict, dict_callback, ds);
}