Skip to content

Commit

Permalink
Fixed issue laruence#360
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Jun 29, 2017
1 parent 81fcb83 commit c2419c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions yaf_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ PHP_METHOD(yaf_loader, autoload) {
/* }}} */

file_name_len = class_name_len;
file_name = class_name;
file_name = estrndup(class_name, class_name_len);

} while(0);

Expand Down Expand Up @@ -717,9 +717,8 @@ PHP_METHOD(yaf_loader, autoload) {
if (dup_lcname) {
efree(dup_lcname);
}
if (file_name != class_name) {
efree(file_name);
}
efree(file_name);

RETURN_BOOL(ret);
}
/* }}} */
Expand Down

0 comments on commit c2419c6

Please sign in to comment.