Skip to content

Commit

Permalink
free protoobj
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Sep 19, 2017
1 parent 93a7875 commit 08b2cc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion burba/sys/bocia/bocia.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,12 @@ int8_t unmarshal_bocia_payload(channel_reader_t *rd, unsigned char *data,
DEBUG("recv malformed message\n");
return INPUTHANDLER_ERR;
}
// reuse type slot for status reporting
type = handler(rd, ptype, obj);

return handler(rd, ptype, obj);
FREE_PROTOB(obj);

return type;
}

void set_reboot_mode(int mode) {
Expand Down

0 comments on commit 08b2cc2

Please sign in to comment.