Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xin Wang
codes-dev
Commits
d30a840e
Commit
d30a840e
authored
Feb 05, 2014
by
Jonathan Jenkins
Browse files
lp-io segv fix
parent
549ca83d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/util/lp-io.c
View file @
d30a840e
...
...
@@ -135,6 +135,13 @@ int lp_io_write_rev(tw_lpid gid, char* identifier){
id
->
buffers_count
--
;
id
->
buffers_total_size
-=
buf
->
size
;
if
(
id
->
buffers_count
==
0
){
/* seg faults caused with empty identifiers for some reason - remove
* this ID */
identifiers
=
id
->
next
;
free
(
id
);
identifiers_count
--
;
}
/* remove the buffer from the list
* (NULLs for end-of-list are preserved) */
if
(
buf
==
id
->
buffers
)
{
/* buf is head of list */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment