Skip to content

Commit

Permalink
* clmodule.c (doParams): free PVbuffer in error condition.
Browse files Browse the repository at this point in the history
* frameobject.c (newframeobject): initialize ob_type if taking entry
  from the free list, since it is zeroed out when DEBUG is defined.
  • Loading branch information
sjoerdmullender committed Aug 3, 1993
1 parent d29eb62 commit f64992e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Modules/clmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,10 @@ doParams(clobject *self, object *args, int (*func)(CL_Handle, int *, int),

error_handler_called = 0;
(*func)(self->ob_compressorHdl, PVbuffer, length);
if (error_handler_called)
if (error_handler_called) {
DEL(PVbuffer);
return NULL;
}

if (modified) {
for (i = 0; i < length; i++) {
Expand Down
1 change: 1 addition & 0 deletions Objects/frameobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ newframeobject(back, code, globals, locals, owner, nvalues, nblocks)
else {
f = free_list;
free_list = free_list->f_back;
f->ob_type = &Frametype;
NEWREF(f);
}
if (f != NULL) {
Expand Down

0 comments on commit f64992e

Please sign in to comment.